Code example for RadioGroup

Methods: setVisibility

0
	 */ 
	private void expandJokeView() { 
		m_vwJokeText.setMaxLines(10);
		m_vwJokeText.setEllipsize(null);
		m_vwExpandButton.setText(COLLAPSE);
		m_vwLikeGroup.setVisibility(VISIBLE);
		this.requestLayout();
	} 
 
	/** 
	 * This method encapsulates the logic necessary to update this view so that 
	 * it displays itself in its "Collapsed" form:  
	 * 	- Shows only the first line of text of the joke.  
	 *  - If the joke is longer than one line, it appends an ellipsis to the end.  
	 *  - Removes the RadioGroup of rating Buttons from view. 
	 */ 
	private void collapseJokeView() { 
		m_vwJokeText.setMaxLines(2);
		m_vwJokeText.setEllipsize(TextUtils.TruncateAt.END);
		m_vwExpandButton.setText(EXPAND);
Contextual code suggestions in your IDE  Get Codota for Java