Android soft keyboard resize layout

前端 未结 4 1121
自闭症患者
自闭症患者 2020-12-10 23:47

When the virtual keyboard opens, it resizes my layout. How can i made for put the keyboard on my layout? And what it doesn\'t re-size my layout?

相关标签:
4条回答
  • 2020-12-11 00:28
    <application
        android:windowSoftInputMode="adjustResize"> 
    </application>
    

    adjustPan only resizes the input field by pushing it up just a little above the keyboard, in which case the keyboard still covers every other view beneath it.

    0 讨论(0)
  • 2020-12-11 00:38

    Android soft keyboard resize layout

    <activity android:name=".activity.SignUpActivity"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar"
        android:windowSoftInputMode="adjustResize" />
    

    It's Working for me try it.

    0 讨论(0)
  • 2020-12-11 00:42

    You can use manifest flags to configure the effect of the virtual keyboard. See http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft

    0 讨论(0)
  • 2020-12-11 00:53

    use only this code:

        <application
        android:windowSoftInputMode="adjustPan"
        </application>
    

    used in manifest-application tag for all application

    0 讨论(0)
提交回复
热议问题