Code example for LinearLayout

Methods: invalidate, requestLayout

0
             
            Handler handler = layoutTimer.getHandler(); 
            if(handler != null){ 
	            handler.post(new Runnable() { 
					public void run() { 
			            layoutTimer.invalidate(); 
			            layoutTimer.requestLayout(); 
					} 
				}); 
            } 
 
            if(timer == null) { 
                timer = new Timer("AlertDialog-Timer"); 
            } 
 
            if(this.dismissTask != null) { 
                this.dismissTask.cancel(); 
                this.dismissTask = null; 
            } 
             
            this.dismissTask = new TimerTask() {