Code example for AnimationDrawable

Methods: setVisible

0
		 
		findViewById(R.id.btn_start).setOnClickListener(new OnClickListener() {
			 
			@Override 
			public void onClick(View v) {
				mAnimation.setVisible(true, true);
				//mAnimation.start(); 
			} 
		}); 
		 
		 
		createAnimation(); 
		final ImageView mImage2 = (ImageView)findViewById(R.id.image_view2);
		 
		findViewById(R.id.btn_start2).setOnClickListener(new OnClickListener() {
			 
			@Override 
			public void onClick(View v) {
				mImage2.startAnimation(mRotateAnimation);
			} 
Experience pair programming with AI  Get Codota for Java