Code example for ViewStub

Methods: inflate

0
        showButton.setOnClickListener(new OnClickListener(){
        	 
        	@Override 
        	public void onClick(View v) {
        		if (mViewStub != null) {  
                   mViewStub.inflate();  //µã»÷¼´µ¼ÈëViewStub±êÇ©µÄÄÚÈÝ
                  }   
        		 
        	} 
        }); 
    } 
}