Git Product home page Git Product logo

android-lib-symmetricprogressbar's Issues

SymmetricProgressBar animates before startAnimation() called

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?

Problems

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()

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.