FileDocCategorySizeDatePackage
BigEditTextActivityScrollablePanScan.javaAPI DocAndroid 5.1 API2333Thu Mar 12 22:22:44 GMT 2015com.android.imftest.samples

BigEditTextActivityScrollablePanScan

public class BigEditTextActivityScrollablePanScan extends android.app.Activity

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

        return mDefaultFocusedView;
    
public android.view.ViewgetRootView()

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

        super.onCreate(icicle);
        
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
        
        mRootView = new ScrollView(this);
        ((ScrollView) mRootView).setFillViewport(true);
        mRootView.setLayoutParams(new ViewGroup.LayoutParams(
                ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.MATCH_PARENT));
        
        mLayout = new LinearLayout(this);
        mLayout.setOrientation(LinearLayout.VERTICAL);
        mLayout.setLayoutParams(new ViewGroup.LayoutParams(
                ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.MATCH_PARENT));
        
        View view = getLayoutInflater().inflate(
                R.layout.full_screen_edit_text, ((ScrollView) mRootView), false);
        
        mLayout.addView(view);
        
        ((ScrollView) mRootView).addView(mLayout);
        mDefaultFocusedView = view.findViewById(R.id.data);
        
        setContentView(mRootView);