philjay / circledisplay Goto Github PK
View Code? Open in Web Editor NEWAndroid View for displaying and selecting values in a circle-shaped View, with animations and touch gestures.
Android View for displaying and selecting values in a circle-shaped View, with animations and touch gestures.
There is not an option to change the animation from clockwise to anit-clokwise, I have to spent a couple of hours researching for implementing the anti-clockwise animation that I need to develop, so I think you can add this feature to your component and be custom in that way to. It very useful and works excellent.
I did it changing this line
mDrawAnimator = ObjectAnimator.ofFloat(this, "phase", mPhase,1.0f).setDuration(3000);
for this:
mDrawAnimator = ObjectAnimator.ofFloat(this, "phase", 1.0f,mPhase).setDuration(3000);
I dont know if there a better way, but I hope it will help.
I have an activity that shows a CircleDisplay beneath a chart. All works well when the layout is placed inside a LinearLayout. But when I place this LinearLayout inside a ScrollView, the CircleDisplay disappears (while the chart is still being shown correctly). Can this be a bug or am I missing something?
The circle arc goes out of bounds whenever there is a heavy load operation performed (i.e.) in my case pulling data from the device internal storage database and displaying it in the circle.
Under normal circumstances which doesn't involve heavy load operations the circle is displaying fine and the animation is smooth, but not otherwise.
Is this related to performance issues? Please advice. (PFA - Screenshots)
Hello, i have noticed an issue when i change the screen orientation to landscape, i have two separated circles. Please any help ?
I have a few reports on this error:
android.view.InflateException: Binary XML file line #97: Error inflating class com.philjay.circledisplay.CircleDisplay
Caused by: java.lang.NoClassDefFoundError: android.animation.ObjectAnimator
at com.philjay.circledisplay.CircleDisplay.init(CircleDisplay.java:128)
at com.philjay.circledisplay.CircleDisplay.(CircleDisplay.java:102)
I figured out that the problem has to do with the support library. it does not support the ObjectAnimator for API level 11 and below.
I guess a workaround would be, only animate when API level is above 11.
Is there maybe another fix for this?
Can you add a license file to indicate the license this code falls under?
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.