开发者

Disable soft keyboard when using ViewFlipper

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜