TextView setMaxHeight - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for TextView setMaxHeight method.

This code example shows how to use the following methods:setEnabled, setInputType, setMaxHeight, setText
	} 
	 
	public InputDialog( String title, String message, String text, boolean editable, boolean password, Activity activity, InputDialogListener inputDialogListener ){
		super( activity );
		 
		mEditText = new EditText( activity );
		 
		if( text != null )
			mEditText.setText(text);
		 
		mEditText.setEnabled( editable );
		mEditText.setMaxHeight( 250 );
		 
		if( password )
			mEditText.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD );
				 
		this.setTitle( title );
		this.setMessage( message );
		this.setView( mEditText );
		 
9
CodeRank

Related TextView setMaxHeight Questions & Answers:

setMaxHeight Method Overview
Makes the TextView at most this many pixels tall.
See Code Examples for other Android TextView Methods: