Code example for ViewStub

Methods: setVisibility

0
     
    /** 
     * Shows the start screen (entry point for application) 
     */ 
    private void showStartScreen() { 
        mainMenuStub.setVisibility(View.VISIBLE);     
    } 
     
    /** 
     * Shows the middle screen  
     */ 
    private void showMiddleScreen() { 
    	inCatchBackState = true;
        postGeneratedStub.setVisibility(View.VISIBLE);
    } 
     
    /** 
     * Starting the run 
     */ 
    public void startRunAction(View v) {
Experience pair programming with AI  Get Codota for Java