Code example for AnimationDrawable

Methods: setVisible, start

0
     * ¾Ö´Ï¸ÞÀÌ¼Ç ½ÃÀÛ 
     */ 
	private void startAnimation() { 
     	imageView01.setBackgroundDrawable(animDrawable);
 
     	animDrawable.setVisible(true, true);
     	animDrawable.start();
	} 
 
	/** 
	 * ¾Ö´Ï¸ÞÀÌ¼Ç ÁßÁö 
	 */ 
	private void stopAnimation() { 
		animDrawable.stop();
		animDrawable.setVisible(false, false);
	} 
 
    @Override 
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;