android - 使用 ViewFlipper 时禁用软键盘

标签 android viewflipper

我正在使用 ViewFlipper 滑动不同的布局,每个布局都有自己的 EditText 框。当我滑动到下一个/上一个 child 时,软键盘会自动弹出,即使我禁用了 list 文件中的 Activity android:windowSoftInputMode="stateAlwaysHidden"。 我想禁用软键盘的自动弹出并使其仅在用户单击 EditText 框时出现。有人可以帮忙吗?

最佳答案

通过包含解决它 android:focusableInTouchMode="true" 在每个 child 的父 LinearLayout 中。

关于android - 使用 ViewFlipper 时禁用软键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7758039/

相关文章:

android - IntentService 有时不被调用

android - 在 ViewFlipper 中添加导航句柄

java - 我如何选择将播放来自 SC 2 服务器的哪个 SID?

android - 在三星手机中从相机 Intent 捕获照片时获取 Uri Null

android - 实现 Google Play 游戏服务 - 如何让用户登录

android - 在 viewFlipper 中的位置

android - 使用 View 翻转器在不同列表中显示相同图像

android - Android 中 ScrollView 中的 ViewFlipper

android - Xamarin 安卓 : Exception thrown when adding new ImageView to ViewFlipper

android - 读取 .txt 并将信息放入 hashMap