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);
			} 
Stop searching for code, let great code find you!  Add Codota to your java IDE