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

ManyEditTextActivityNoScrollPanScan

public class ManyEditTextActivityNoScrollPanScan extends android.app.Activity

Fields Summary
public static final int
NUM_EDIT_TEXTS
private android.view.View
mRootView
Constructors Summary
Methods Summary
public android.view.ViewgetRootView()

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


    
        
    
        super.onCreate(savedInstanceState);

        mRootView = new LinearLayout(this);
        ((LinearLayout) mRootView).setOrientation(LinearLayout.VERTICAL);

        for (int i=0; i<NUM_EDIT_TEXTS; i++) 
        {
            final EditText editText = new EditText(this);
            editText.setText(String.valueOf(i));
            editText.setId(i);
            ((LinearLayout) mRootView).addView(editText);
        }
        setContentView(mRootView);
        this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);