Page scroll when soft keyboard popped up

前端 未结 10 1074
清歌不尽
清歌不尽 2020-11-30 00:05

I have a layout:




        
相关标签:
10条回答
  • 2020-11-30 00:52

    You can try using the following code to solve your problem:

     <activity
         android:name=".DonateNow"
         android:label="@string/title_activity_donate_now"
         android:screenOrientation="portrait"
         android:theme="@style/AppTheme"
         android:windowSoftInputMode="stateVisible|adjustPan">
     </activity>
    
    0 讨论(0)
  • 2020-11-30 00:58

    For me the only thing that works is put in the activity in the manifest this atribute:

    android:windowSoftInputMode="stateHidden|adjustPan"
    

    To not show the keyboard when opening the activity and don't overlap the bottom of the view.

    0 讨论(0)
  • 2020-11-30 00:59

    check out this.

    <activity android:name=".Calculator"
        android:windowSoftInputMode="stateHidden|adjustResize" 
        android:theme="@android:style/Theme.Black.NoTitleBar">
    </activity>
    
    0 讨论(0)
  • 2020-11-30 01:01

    I fixed the problem by defining the following attribute in <activity> of AndroidManifest.xml

    android:windowSoftInputMode="adjustResize"
    
    0 讨论(0)
提交回复
热议问题