Code example for LinearLayout

Methods: invalidate, requestLayout, setVisibility

0
        else { 
            if(this.dismissTask != null) { 
                this.dismissTask.cancel(); 
                this.dismissTask = null; 
            } 
            this.layoutTimer.setVisibility(View.GONE); 
            layoutTimer.invalidate(); 
            layoutTimer.requestLayout(); 
        } 
    } 
}