Code example for ImageView

Methods: setVisibility, clearAnimation

0
            tab.startAnimation(anim1);
            text.startAnimation(anim2);
        } 
 
        public void hideTarget() { 
            target.clearAnimation();
            target.setVisibility(View.INVISIBLE);
        } 
    } 
 
    public SlidingTab(Context context) {
        this(context, null);
    } 
 
    /** 
     * Constructor used when this widget is created from a layout file. 
     */ 
    public SlidingTab(Context context, AttributeSet attrs) {
        super(context, attrs);
 
        // Allocate a temporary once that can be used everywhere.