LogTextBoxpublic class LogTextBox extends android.widget.TextView This is a TextView that is Editable and by default scrollable,
like EditText without a cursor.
XML attributes
See
{@link android.R.styleable#TextView TextView Attributes},
{@link android.R.styleable#View View Attributes} |
Constructors Summary |
---|
public LogTextBox(android.content.Context context)
super(context, ScrollingMovementMethod.getInstance(),
null);
init();
| public LogTextBox(android.content.Context context, android.text.method.MovementMethod movement, android.text.method.InputMethod input)
super(context, movement, input);
init();
| public LogTextBox(android.content.Context context, android.text.method.MovementMethod movement, android.text.method.InputMethod input, android.text.method.TransformationMethod transformation)
super(context, movement,
input,
transformation);
init();
| public LogTextBox(android.content.Context context, android.util.AttributeSet attrs, Map inflateParams)
super(context, attrs, inflateParams,
ScrollingMovementMethod.getInstance(),
null,
null, android.R.attr.textViewStyle);
init();
| public LogTextBox(android.content.Context context, android.util.AttributeSet attrs, Map inflateParams, android.text.method.MovementMethod movement, android.text.method.InputMethod input, android.text.method.TransformationMethod transformation, int defStyle)
super(context, attrs, inflateParams,
movement,
input,
transformation, defStyle);
init();
|
Methods Summary |
---|
public android.text.Editable | getText()
return (Editable) super.getText();
| private final void | init()
/*
if (getBackground() == null) {
setBackground(getContext().getResources().getDrawable(
android.R.drawable.editbox_background));
}
*/
| public void | setText(java.lang.CharSequence text, BufferType type)
super.setText(text, BufferType.EDITABLE);
|
|