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. 
Contextual code suggestions in your IDE  Get Codota for Java