开发者

Disable soft keyboard when using ViewFlipper

开发者 https://www.devze.com 2023-04-13 00:41 出处:网络
I am using ViewFlipper to swipe through different layouts each having their own Edi开发者_开发技巧tText boxes. When I swipe to next/previous child, the soft keyboard automatically pops up even if I di

I am using ViewFlipper to swipe through different layouts each having their own Edi开发者_开发技巧tText boxes. When I swipe to next/previous child, the soft keyboard automatically pops up even if I disabled using android:windowSoftInputMode="stateAlwaysHidden" for the activity in the manifest file. I want to disable the automatic popping up of the soft keyboard and make it appear only if the user clicks on EditText box. Can somebody help?


Solved it by including android:focusableInTouchMode="true" in the parent LinearLayout of each child.

0

精彩评论

暂无评论...
验证码 换一张
取 消