GithubHelp home page GithubHelp logo

Comments (13)

rey5137 avatar rey5137 commented on May 18, 2024

Can you pls show me the CircularProgressDrawableStyle you used?

from material.

inteist avatar inteist commented on May 18, 2024

I just imported the library and copied this from your sample app.

Isn't it included in the library?

from material.

rey5137 avatar rey5137 commented on May 18, 2024

CircularProgressDrawableStyle is the style defined in demo app. The lib has Material.Drawable.CircularProgress style for circular progress drawable.

from material.

inteist avatar inteist commented on May 18, 2024

I see now. This is quite confusing IMO...

So how circular progress should be used then?

from material.

inteist avatar inteist commented on May 18, 2024

I tried removing the style completely hoping to get the default style but it still crashes.

from material.

rey5137 avatar rey5137 commented on May 18, 2024

You can set app:pv_progressStyle="@style/Material.Drawable.CircularProgress" for default style.
In next version, I will fix progress view constructor to pass a default style in case you don't set it.

from material.

inteist avatar inteist commented on May 18, 2024

Maybe it's the late hour or something but I already tried that after your previous comment and it did not work.

Here's the code I have

    <com.rey.material.widget.ProgressView
        android:id="@+id/progress_wheel"
        android:layout_width="@dimen/sign_width"
        android:layout_height="@dimen/sign_height"
        app:pv_autostart="true"
        app:pv_circular="true"
        app:cpd_strokeColor="@color/light_primary_color"
        app:pv_progressStyle="@style/Material.Drawable.CircularProgress"
        app:pv_progressMode="indeterminate"/>

from material.

rey5137 avatar rey5137 commented on May 18, 2024

In ProgressView constructor codes has that check progressStyleId > 0 (the correct should be progressStyleId != 0). Maybe that cause the CircularProgressDrawable isn't created in your case. I will fixed it in next version.

from material.

inteist avatar inteist commented on May 18, 2024

Sounds good. I think you should use the default styles in the demo app which also serves kind of a test app as fas as I understand. Right now, you are not using the defaults and missing some issues such as in this case.

from material.

rey5137 avatar rey5137 commented on May 18, 2024

I have released new 1.1.0 version. Please check it.

from material.

inteist avatar inteist commented on May 18, 2024

Hey Rey,

I have

compile 'com.github.rey5137:material:1.+'

but when I sync up the project it does not pull the update lib for some reason. Did you publish it to jcenter/maven?

from material.

inteist avatar inteist commented on May 18, 2024

UPD: I manually set it up to 1.1.0 and then it did sync up. Weird... Any idea why that did not pick up the change with the 1.+ ?

from material.

inteist avatar inteist commented on May 18, 2024

The spinner does not show up now... at all...
I tried removing the style completely too (in case it interferes somehow) but it did not help.

from material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.