Code example for ViewStub

Methods: setVisibility

0
     
    /** 
     * Starting the run 
     */ 
    public void startRunAction(View v) {
    	postGeneratedStub.setVisibility(View.GONE);
    	runViewStub.setVisibility(View.VISIBLE);
    	 
    	runController.startRunLogic(this);
        mapView.requestFocus();
		mapView.requestFocusFromTouch();
		mapView.setClickable(true);
    } 
     
    /** 
     * Catches back button when we want it to just step back in application 
     */ 
    @Override 
    public void onBackPressed() { 
    	if(inCatchBackState) {
    		cleanUp();