Code example for Spinner

Methods: setVisibilitysetEnabled

0
 
	} 
 
	public void showActivityUI(boolean shouldShow) {
		mStartButton.setEnabled(shouldShow);
		mActivities.setEnabled(shouldShow);
		if (shouldShow) {
			mStartButton.setVisibility(View.VISIBLE);
			mActivities.setVisibility(View.VISIBLE);
			mLabel.setVisibility(View.VISIBLE);
		} else { 
			mStartButton.setVisibility(View.GONE);
			mActivities.setVisibility(View.GONE);
			mLabel.setVisibility(View.GONE);
		} 
	} 
 
	/** 
	 * Populates the activity selection spinner and activates start button if 
	 * needed. 
Stop searching for code, let great code find you!  Add Codota to your java IDE