GithubHelp home page GithubHelp logo

flattimecollection's Issues

how to disable startEndAnimation ?

Thanks for the awesome library !

I'm trying alter the library, I want continues rotation of the time for fixes time.

what I have tried:

1> I'm repeatedly calling start on CountDownTimer's setOnEndAnimationFinish

  mCountDownTimer.setOnEndAnimationFinish(new OnTimeFinish() {
               @Override
               public void onFinish() {
                   mCountDownTimer.setFinishMode(CountDownTimerView.FinishMode.NoAnimation);
                     mCountDownTimer.start(5000);
}
}

2> also removed created FinishMode.NoAnimation enum for finish without animation

3> commented the CountDownTimerView startEndAnimation() implementation to avoid end animation

  private void startEndAnimation() {
//        animatorSet = new AnimatorSet();
//        ObjectAnimator scaleX = ObjectAnimator.ofFloat(this, "scaleX", 1f);
//        ObjectAnimator scaleY = ObjectAnimator.ofFloat(this, "scaleY", 1f);
//        scaleX.setDuration(0);
//        scaleY.setDuration(0);
//
//        ObjectAnimator scaleX2 = ObjectAnimator.ofFloat(this, "scaleX", 1f);
//        ObjectAnimator scaleY2 = ObjectAnimator.ofFloat(this, "scaleY", 1f);
//        scaleX2.setDuration(0);
//        scaleY2.setDuration(0);
//        scaleX2.addListener(new Animator.AnimatorListener() {
//            @Override
//            public void onAnimationStart(Animator animation) {
//                stop();
//                drawFinish = true;
//                postInvalidate();
//            }
//
//            @Override
//            public void onAnimationEnd(Animator animation) {
//                if (onEndAnimationFinish != null)
//                    onEndAnimationFinish.onFinish();
//            }
//
//            @Override
//            public void onAnimationCancel(Animator animation) {
//            }
//
//            @Override
//            public void onAnimationRepeat(Animator animation) {
//            }
//        });
//       // animatorSet.play(scaleX2).with(scaleY2).after(scaleX).after(scaleY);
//        animatorSet.start();

        stop();
        drawFinish = true;
        isFinished=false;
       onEndAnimationFinish.onFinish();
        isFinished=false;
//above code only generates  2 time rotation
    }

startEndAnimation stopped but timer repeating only two times, actually I want continues rotation, without end animation !

Not able to find where I'm missing !

Attempt to read from field 'float android.graphics.RectF.bottom' on a null object reference

Hello,

I use FlatTimeCollection but When I make run, It shows me the message:
Attempt to read from field 'float android.graphics.RectF.bottom' on a null object reference

My code is here:

@Override
   protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.my_activity_layout);

       mHourGlass = (HourGlassView) findViewById(R.id.mHourGlass);

       try{
           mHourGlass.start(2000);
       } catch (Exception e) {
           time.setError(e.getMessage());
       }

       mHourGlass.flip();

       mHourGlass.setOnTimeFinish(new OnTimeFinish() {
           @Override
           public void onFinish() {
               Toast.makeText(getApplicationContext(), "finished", Toast.LENGTH_SHORT).show();
           }
       });

   }


new HourGlassView

HourGlassView

Coming Soon ...

it is a CountDownTimer with special UI.
it will be here soon, just i am fixing some issues .....

Attribute has already been defined error

I use the library but when i make build, AS shows me the message:

Attribute "strokeWidth" has already been defined
Attribute "strokeColor" has already been defined

I think that the names of these attributes are too generic and conflict with other popular libraries and can not use yours.

I hope that solutions soon, greetings.

custom option for CountDown repeat

Thanks for the awesome library !

I want to alter the CountDown timer by repeating it!!

if I set timer for 500 it finishes on OnTimeFinish

I want to repeat the same timer again and again !!

the below logic fails !!

  mCountDownTimer.setOnTimeFinish(new OnTimeFinish() {
            @Override
            public void onFinish() {
                mCountDownTimer.start(500);


            }
        });

any tips available?

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.