FileDocCategorySizeDatePackage
OneEditTextActivitySelected.javaAPI DocAndroid 1.5 API1330Wed May 06 22:42:02 BST 2009com.android.imftest.samples

OneEditTextActivitySelected

public class OneEditTextActivitySelected extends android.app.Activity

Fields Summary
private android.view.View
mRootView
private android.view.View
mDefaultFocusedView
Constructors Summary
Methods Summary
public android.view.ViewgetDefaultFocusedView()

        return mDefaultFocusedView;
    
public android.view.ViewgetRootView()

        return mRootView;
    
public voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        LinearLayout layout = new LinearLayout(this);
        layout.setOrientation(LinearLayout.VERTICAL);
        mRootView = new ScrollView(this);
        
        EditText editText = new EditText(this);
        editText.requestFocus();
        mDefaultFocusedView = editText;
        layout.addView(editText);

        ((ScrollView) mRootView).addView(layout);
        setContentView(mRootView);