android应用禁用键盘,禁用整个应用程序的键盘(Android)
加入您的layout.xmlandroid:descendantFocusability="blocksDescendants"希望按照主(父)布局代码它会工作。并设置以下属性在你的WebViewandroid:focusable="false"android:focusableInTouchMode="true"See it:xmlns:tools="http://schemas.android
加入您的layout.xml
android:descendantFocusability="blocksDescendants"
希望按照主(父)布局代码它会工作。并设置以下属性在你的WebView
android:focusable="false"
android:focusableInTouchMode="true"
See it:
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:descendantFocusability="blocksDescendants"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivityFragment">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusable="false"
android:focusableInTouchMode="false">
更多推荐
所有评论(0)