FileDocCategorySizeDatePackage
LogTextBox1.javaAPI DocGoogle Android v1.5 Example1441Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.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 icicle)

        super.onCreate(icicle);
        
        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");
            } });