gpt4 book ai didi

android - 在 Android Webview 加载的 URL 中,其中 EditText 没有获得焦点并且键盘没有启动

转载 作者:搜寻专家 更新时间:2023-11-01 09:32:09 26 4
gpt4 key购买 nike

Below URL is loaded in webview and EditText feild is not gaining focusas a result keyboard is not displayed.

Loaded URL in WebView :https://docs.google.com/forms/d/e/1FAIpQLSeICt0NT0xWZZV1iwLEaaZnnw5n5-8iRGt6HGQHQ9QFq1xpyA/viewform?c=0&w=1

Tried Solutions :Why is Android WebView refusing user input?

任何帮助都将不胜感激。

最佳答案

Found the issue :

<WebView
android:id="@+id/common_webview_id"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusableInTouchMode="true"></WebView>

The problem was "focusableInTouchMode" attribute value was set to
"false" i.e android:focusableInTouchMode="false" and it should be "true" edit text to gain focus.

关于android - 在 Android Webview 加载的 URL 中,其中 EditText 没有获得焦点并且键盘没有启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46191989/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com