Android Hide Soft Keyboard from EditText while not losing cursor

前端 未结 14 1916
日久生厌
日久生厌 2020-12-03 04:55

I\'ve come about as far as this which gets me halfway there, but not quite. I have a dialer Fragment that has all the usual Buttons to enter a numb

14条回答
  •  萌比男神i
    2020-12-03 05:30

    use

    android:windowSoftInputMode="stateHidden" 
    

    in your manifest file instead of android:windowSoftInputMode="stateAlwaysHidden"

提交回复
热议问题