作者kerash (Kerberos)
看板AndroidDev
标题[问题] webview 读取 html 档中 input 的问题
时间Sat Nov 2 12:29:52 2013
---
Sun Nov 3.
自行解决
正确解答:
我的 layout.xml 不小心忘记移除预设自动新增的 padding
拿掉後就正常了..
错误解答:
官网的教学是把 webview 当 root layout
在外面包一层 linear layout 就解决了
...
---
请教各位
今天我用一个 webview 读取 asset 中的 html
而在这个 html 中使用到 input
当我启动後,点下 input (为 focus) 状态
这个 input 会变成两个
google 到相同状况的图片:
http://i.stack.imgur.com/9VZi2.png
网路上找到的解答有三种
1. 设定 position
2. 设定 css
3. 设定 Manifest 让 softkey 显示的方式改变
但是不论是哪个对我的装置都无效
我尝试过从 2.3~4.4 的系统,发现只有低於 4.1 才会有这个状况
webview 使用的 webclient 是 webchromeclient,
我换过使用 webviewclient 一样
请问这种状况有解吗? 已经找不到相关的解法了..
谢谢
--
[There's no undo in your life]
●~ ●~ ●~ ●~ ●~ ●~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.161.50.176
※ 编辑: kerash 来自: 218.161.50.176 (11/02 12:30)
※ 编辑: kerash 来自: 218.161.50.176 (11/03 11:29)
※ 编辑: kerash 来自: 218.161.50.176 (11/03 14:21)