[問題] webview input 的問題 (自行解決)
---
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)