Code example for LinearLayout

Methods: getVisibilitysetVisibility

0
	 
	public boolean showEmotionView() { 
		if (llEmotion == null) {
			setLlEmotion(); 
		} 
		if (llEmotion.getVisibility() == View.GONE) {
			llEmotion.setVisibility(View.VISIBLE);
			return true; 
		} else { 
			return false; 
		} 
	} 
	 
	public boolean hideEmotionView() { 
		if (llEmotion == null) {
			setLlEmotion(); 
		} 
		if (llEmotion.getVisibility() == View.VISIBLE) {
			llEmotion.setVisibility(View.GONE);
			return true; 
		} else { 
			return false; 
		} 
	} 
	 
	public int reverseEmotionView() { 
		if (llEmotion == null) {
			setLlEmotion(); 
		} 
		if (llEmotion.getVisibility() == View.GONE) {
			showEmotionView(); 
			return View.VISIBLE;
		} else { 
			hideEmotionView(); 
			return View.GONE;
Experience pair programming with AI  Get Codota for Java