FileDocCategorySizeDatePackage
RequestFocus.javaAPI DocAndroid 1.5 API1507Wed May 06 22:42:02 BST 2009com.android.frameworktest.focus

RequestFocus

public class RequestFocus extends android.app.Activity
Exercises cases where elements of the UI are requestFocus()ed.

Fields Summary
protected final android.os.Handler
mHandler
Constructors Summary
Methods Summary
public android.os.HandlergetHandler()

        return mHandler;
    
protected voidonCreate(android.os.Bundle icicle)


         
        super.onCreate(icicle);
        setContentView(R.layout.focus_after_removal);

        // bottom right button starts with the focus.
        final Button bottomRightButton = (Button) findViewById(R.id.bottomRightButton);
        bottomRightButton.requestFocus();
        bottomRightButton.setText("I should have focus");