Code example for TextView

Methods: setText, setVisibility

0
		} else { 
			title.setText("");
			title.setVisibility(GONE);
		} 
		if (item.getSnippet() != null) {
			snippet.setVisibility(VISIBLE);
			snippet.setText(item.getSnippet());
		} else { 
			snippet.setText("");
			snippet.setVisibility(GONE);
		} 
	} 
	 
	private class LimitLinearLayout extends LinearLayout {
 
	    private static final int MAX_WIDTH_DP = 280;
	     
	    final float SCALE = getContext().getResources().getDisplayMetrics().density;
 
	    public LimitLinearLayout(Context context) {
	        super(context);