Code example for TableRow

Methods: setVisibility

0
  	 
  	private void showMasterMode(boolean enabled) { 
		 
		if (enabled) { 
			startTblRow.setVisibility(View.GONE); 
			stopTblRow.setVisibility(View.VISIBLE); 
			 
			// animation 
			if (animation != null) { 
				stopBtn.startAnimation(animation); 
			} 
			 
		} else { 
			startTblRow.setVisibility(View.VISIBLE); 
			stopTblRow.setVisibility(View.GONE); 
			 
			// animation 
			if (animation != null) { 
				startBtn.startAnimation(this.animation); 
			}