Android keyboard top layout

AndroidMainfest.xml file, the corresponding activity attribute of the layout is set to:

<activity android:name=".ui.activity.MainActivity"
    android:windowSoftInputMode="adjustPan|stateHidden">  //此行保证布局不被键盘顶起
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>