FileDocCategorySizeDatePackage
RequestFocus.javaAPI DocAndroid 5.1 API1441Thu Mar 12 22:22:12 GMT 2015android.widget.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");