Code example for AnimationDrawable

Methods: isRunningstartstop

0
        bt_start.setOnClickListener(new OnClickListener() {
 
            @Override 
            public void onClick(View v) {
                Log.d("flick", "############# bt_again click");
                if(frameAnimation.isRunning()){
//                    mBtnReadMode.setClickable(true); 
                    Log.d("flick", "############# is animation running before stop: " + frameAnimation.isRunning());
                    frameAnimation.stop();
                } 
                frameAnimation.start();
               
            } 
        }); 
         
//        bt_stop.setOnClickListener(new OnClickListener() { 
//             
//            @Override 
//            public void onClick(View v) { 
//                Log.d("flick", "############# is animation running before stop: " + frameAnimation.isRunning()); 
//                frameAnimation.stop();