FileDocCategorySizeDatePackage
LogTextBox1.javaAPI DocAndroid 1.5 API1480Wed May 06 22:41:08 BST 2009com.example.android.apis.text

LogTextBox1

public class LogTextBox1 extends android.app.Activity
Using a LogTextBox to display a scrollable text area to which text is appended.

Fields Summary
private LogTextBox
mText
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.log_text_box_1);
        
        mText = (LogTextBox) findViewById(R.id.text);
        
        Button addButton = (Button) findViewById(R.id.add);
        addButton.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                mText.append("This is a test\n");
            } });