FileDocCategorySizeDatePackage
ManyEditTextActivityNoScrollPanScan.javaAPI DocAndroid 5.1 API1997Thu Mar 12 22:22:44 GMT 2015com.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);