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

BigEditTextActivityNonScrollablePanScan

public class BigEditTextActivityNonScrollablePanScan 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;
    
protected voidonCreate(android.os.Bundle icicle)

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