ayltai / android-lib-symmetricprogressbar Goto Github PK
View Code? Open in Web Editor NEWAn animated ProgressBar, similar to the one used in Gmail app.
License: Apache License 2.0
An animated ProgressBar, similar to the one used in Gmail app.
License: Apache License 2.0
Hi
I am using this library in my project and first of all i have to admit that it works perfect (thanks)
when I add it to XML layout, It automatically starts to animate even before I call start animation.
Of course when I call stop animation, it stops, but it isn't the proper functionality
I add it to the layout like this:
<Controls.SymmetricProgressBar
android:id="@+id/progress_bar_bottom"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:layout_height="6dp" />
and catch in my fragment like this:
@OverRide
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
mRootView = (ViewGroup) inflater.inflate(R.layout.fragment_book_list, container, false);
mProgressBar = (SymmetricProgressBar) mRootView.findViewById(R.id.progress_bar_bottom);
}
am I missing something?
hi, thank you for this good idea
there is some problems in your code :
1- animator.setRepeatMode(Animator.RESTART);
should be animator.setRepeatMode(ValueAnimator.RESTART);
2- in integers.xml
you can't use integer-array ... use normal array instead because we can't add color value there and also you colors is normal number !!! put color codes there :
<array name="SymmetricProgressBar_colors"> <item>#FF0000</item> <item>#FFFF00</item> <item>#00FF00</item> <item>#00FFFF</item> </array>
3- you can write like this : (Float) this.animators.get(i).getAnimatedValue()
instead of ((Float)this.animators.get(i).getAnimatedValue()).floatValue()
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.