How can I set the focus (and display the keyboard) on my EditText programmatically

后端 未结 13 653
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 02:22

I have a layout which contains some views like this:






&         


        
相关标签:
13条回答
  • 2020-11-28 02:55

    showSoftInput was not working for me at all.

    I figured I needed to set the input mode : android:windowSoftInputMode="stateVisible" (here in the Activity component in the manifest)

    Hope this help!

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