FileDocCategorySizeDatePackage
LogTextBox.javaAPI DocGoogle Android v1.5 Example3089Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.text

LogTextBox

public 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}

Fields Summary
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.EditablegetText()

        return (Editable) super.getText();
    
private final voidinit()

        /*
        if (getBackground() == null) {
            setBackground(getContext().getResources().getDrawable(
                android.R.drawable.editbox_background));
        }
        */
    
public voidsetText(java.lang.CharSequence text, BufferType type)

        super.setText(text, BufferType.EDITABLE);