单击Webview中的输入时未显示Android键盘

胜利者

我在我的android应用中实现了自定义的webview。如果我触摸此Web视图内的输入或文本区域,则不会显示软键盘。我没有在Web视图中覆盖任何触摸侦听器,也没有更改清单中的任何内容。谁能帮我弄清楚为什么键盘不显示?

我的布局代码:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <android.support.v4.widget.SwipeRefreshLayout
        android:id="@+id/swipeRefreshLayout"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <nl.AEGEE.enschede.android.AEGEEWebView
            android:id="@+id/webView"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

    </android.support.v4.widget.SwipeRefreshLayout>

    <ProgressBar
        android:id="@+id/progressBar"
        style="?android:attr/progressBarStyleHorizontal"
        android:progressTint="@color/aegee_blue"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="-6dp"
        android:layout_alignParentTop="true" />

</RelativeLayout>
基督

请尝试将这些行添加到XML文件中的Web视图中。

android:focusable="true"
android:focusableInTouchMode="true"

希望能帮助到你。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

键盘未显示在WebView Android中

来自分类Dev

键盘未显示在WebView Android中

来自分类Dev

使用屏幕键盘输入时,Android中的EditText不会显示文本

来自分类Dev

弹出式webview中的键盘未显示

来自分类Dev

Ionic Android-键盘未显示在输入焦点上

来自分类Dev

Ionic Android-键盘未显示在输入焦点上

来自分类Dev

单击单选按钮输入时显示模态

来自分类Dev

我想在单击输入时显示文本

来自分类Dev

我想在单击输入时显示文本

来自分类Dev

单击单选按钮输入时显示模态

来自分类Dev

键入时关闭Anglestrap日历,并在单击输入时显示

来自分类Dev

自定义UIView(InfoWindow)中的UITextField-选择输入时键盘不显示

来自分类Dev

颤动,防止在输入时间后显示键盘

来自分类Dev

未输入提示输入时如何显示消息?

来自分类Dev

数字键盘未显示在Webview TextBox焦点上的Android

来自分类Dev

Android软键盘显示在Webview上

来自分类Dev

Android软键盘显示在Webview上

来自分类Dev

当用户单击WebView Android中的文本框时如何隐藏键盘

来自分类Dev

在Webview中的自动对焦上显示键盘

来自分类Dev

InputMethodManager在WebView中显示小键盘

来自分类Dev

InputMethodManager在WebView中显示小键盘

来自分类Dev

如何在Android Studio中通过单击按钮更改键盘输入语言

来自分类Dev

接收Android蓝牙键盘输入时,我可以强制启动软键盘吗?

来自分类Dev

输入时显示文字

来自分类Dev

反应输入中无输入时显示信息

来自分类Dev

单击表单中的按钮输入时如何更改谷歌地图

来自分类Dev

UITextView在键盘中未显示地球图标

来自分类Dev

单击引导输入时“全选”

来自分类Dev

在Android中单击EditText时如何显示自定义键盘

Related 相关文章

热门标签

归档