Comments (8)
Hello Nate,
Can you please provide some code samples and screen-shots so we can hopefully pin point the problem?
Thanks.
from circularprogressview.
sure, here is the layout:
<com.github.guilhe.circularprogressview.CircularProgressView
android:id="@+id/hostUpProgress"
android:layout_height="match_parent"
android:layout_width="match_parent"
app:progress="55"
app:progressBarThickness="50dp"
app:progressBarColor="@color/green"
android:layout_marginTop="5dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="0dp"
/>
and the code in my activity:
hostUpProgress.setReverseEnabled(false);
hostUpProgress.setVisibility(View.VISIBLE);
hostUpProgress.setProgressStrokeThickness(30.0f); // this doesn't seem to be having an effect
ObjectAnimator progressAnimator = ObjectAnimator.ofFloat(hostUpProgress, "progress", 0, 100);
progressAnimator.setDuration(1000 * FPS);
progressAnimator.setInterpolator(new LinearInterpolator());
progressAnimator.start();
from circularprogressview.
I'm changing by code and it works:
setProgressStrokeThickness(30.0f);
setProgressStrokeThickness(60.0f);
setProgressStrokeThickness(90.0f);
Regarding this:
ObjectAnimator progressAnimator = ObjectAnimator.ofFloat(hostUpProgress, "progress", 0, 100);
progressAnimator.setDuration(1000 * FPS);
progressAnimator.setInterpolator(new LinearInterpolator());
progressAnimator.start();
You can use this methods to achieve the same:
public void setAnimationInterpolator(TimeInterpolator interpolator)
public void setProgress(float progress, boolean animate, long duration)
Regards.
from circularprogressview.
Changing the thickness works for me when I use a value from 1 to 10. If I set the value higher than 10, there is no change in the appearance of the control. I did implement the code you provided to do animations and it does work as expected, but again, the bar thickness isn't getting larger than 10dp.
from circularprogressview.
I've this condition inside onMeasure
method. Is this condition valid in your layout?
from circularprogressview.
Any news?
from circularprogressview.
@n8glenn you haven't provide more feedback can I close this "issue"?
from circularprogressview.
I think this may be caused by the way the control is added to the layout file. I used "match_parent" instead of setting a size explicitly, this might be the reason, otherwise I have no idea why it is happening.
from circularprogressview.
Related Issues (16)
- Error adding dependency HOT 6
- Can the ends of the progress bar be round? HOT 2
- Horizontal version HOT 1
- Make the default padding adjustable HOT 2
- ERROR: Failed to resolve: com.github.guilhe:circular-progress-view:${LATEST_VERSION} HOT 5
- Attribute "progress" conflicts with "progress" attribute from ConstraintLayout v.2.0.0-beta5 HOT 4
- Progress with Steps. HOT 1
- Possible bug in the deployment HOT 4
- Semi circle progress HOT 1
- minSdkVersion HOT 1
- The getProgress() animation callback HOT 7
- Permission Request HOT 1
- Background color is manipulated. It should not be. HOT 5
- Multiple arcs on one progress [ENHANCEMENT] HOT 4
- Reverse progress [ENHANCEMENT] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circularprogressview.