passsy / android-holocircularprogressbar Goto Github PK
View Code? Open in Web Editor NEWHolo Circular ProgressBar
Holo Circular ProgressBar
Hi,
Is there any way to set the progress of the wheel without an animation?
I'm trying to use it as an indicator to display a percentage remaining.
I've tried this:
progressBar.setProgress(progressPercentage);
progressBar.setMarkerProgress(progressPercentage);
but it does literally nothing. Am I missing something here?
Thanks
As the progress bar does a complete cycle, it plays a reverse animation going from the last beat of the finished cycle to the first beat of the new cycle. I don't seem to be calling the reverse function anywhere. Any obvious ideas why this may be?
Hi There,
I am looking for a similar solution in my app but i need to know if a few things are possible.
Hi, when I set the animator into repeat mode, I figure that there is a lag between each. The problem is the draw starts from about 300 not 270. I read the source code but I cannot find the solution.
I can style everything appropriately, but would like to remove the tick mark at the origin so it looks like a continuous circle. Is this possible?
It would be great to be able to show some text inside the circle (completed %, just a "loading" message, etc...).
I've done it putting a FrameLayout with a TextView above the HoloCircularProgressBar and it looks nice (see screenshots*) and works smoothly, but would be greater to have it natively on the widget itself :)
*Screenshots:
Screenshot 1
Screenshot 2
Hi,
I'm adding this view to my container layout from code. is it possible to set the stroke width not from xml but from code? , by the way it is a very good stuff you made.
thanks for your answer,
Peter
Hi!
I try to set duration in 60000 milliseconds, but don't work! you can help me ?
/home/root/Desktop/Android/workspace-as/mobile/build/intermediates/exploded-aar/com.google.android.gms/play-services/6.5.87/res/values/wallet_colors.xml
Error:(1) Attribute "progress" has already been defined
when I try to add this library to android studio
I have to archive folder like:
But I acquired bug like:
You can help me fix this bug and guide how add this library to android studio
p/s : I following this guide
http://stackoverflow.com/questions/20310164/how-to-import-eclipse-library-project-from-github-to-android-studio-project
Not an issue but a suggestion. Is there any way to add rounding radius to the progress bar? So instead of a straight line edge; it is rounded.
When background color is changed via setProgressBackgroundColor, the marker color doesn't change, while when the background color is set via XML the marker one changes accordingly.
To fix this, I simply added in function setProgressBackgroundColor
updateMarkerColor();
(Sorry, I'm new to Git and Github, I've no idea how to setup a branch and send a merge request)
When markerEnabled is set to false and onRestoreInstanceState is issued (e.g. orientation change), the marker is drawn.
The problem comes from setMarkerProgress, were you fix mIsMarkerEnabled to true.
I've put holoCircularProgressBar inside a ScrollView and it disappeared. After investigating the problem, it resulted it received height=0. And a brief Internet research shows it's caused by faulty managing of measures inside onMeasure.
I would love to disable the marker symbol. Apparently that is not possible currently?
if i add the attuributes like "app:stroke_width="20dp"" in a de.passsy.holocircularprogressbar.HoloCircularProgressBar,
the application will crash because Error Inflating.
Hi, it's possible to drag the progress bar on touch event of marker?
Thanks!
Its possible to have text in the center of the progress bar?
Hi, Can I pause and after re-start the animation ?
Although some people have asked this question all have eventually figured out how to set a duration (ex. 20000 milliseconds) before a published answer could be posted. How do I animate the holocircularprogressbar much like the countdown timer so that an input would show a smooth animation that lasts the length of the input?
something like a circle or/and a custom drawable. any ideas or wishes?
When I run the sample project, I'm getting a Nullpointerexception for this function. progressBarAnimator.setupEndValues();
03-28 18:04:21.718: E/AndroidRuntime(32572): Caused by: java.lang.NullPointerException
03-28 18:04:21.718: E/AndroidRuntime(32572): at android.animation.PropertyValuesHolder.setupSetterAndGetter(PropertyValuesHolder.java:513)
03-28 18:04:21.718: E/AndroidRuntime(32572): at android.animation.ObjectAnimator.initAnimation(ObjectAnimator.java:392)
03-28 18:04:21.718: E/AndroidRuntime(32572): at android.animation.ObjectAnimator.setupEndValues(ObjectAnimator.java:452)
03-28 18:04:21.718: E/AndroidRuntime(32572): at de.passsy.circularprogressbarsample.CircularProgressBarSample.animate(CircularProgressBarSample.java:76)
03-28 18:04:21.718: E/AndroidRuntime(32572): at de.passsy.circularprogressbarsample.CircularProgressBarSample.onCreate(CircularProgressBarSample.java:60)
How do I import from Gradle using Android studio? I can't find what should I add to my app gradle
Due to line 426, mProgress = progress % 1.0f;
This makes a progress of 1 save as mProgress = 0, so jumping from progress 1 to 0 fails, although this may be oddity with overdraw that I don't fully understand as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.