我在RecyclerView. 除 API 28 外,一切正常。在 Android Pie 設(shè)備中進(jìn)行測試時(shí),單擊 a 的編輯文本項(xiàng)會(huì)RecyclerView打開軟輸入鍵盤,但隨后編輯文本會(huì)立即失去焦點(diǎn),因此我們需要點(diǎn)擊再次在該編輯文本上。一旦我們再次點(diǎn)擊該編輯文本,它就會(huì)像往常一樣工作。但這很奇怪。通常,編輯文本會(huì)在第一次點(diǎn)擊時(shí)保持焦點(diǎn)。我嘗試了以下解決方案但沒有成功https://radhedubey.wordpress.com/2014/08/24/android-listview-with-edittext-loses-focus-when-the-keyboard-displays/http://androidtechnicalblog.blogspot.com/2014/04/quick-trick-of-week-edittext-inside.html?m=1
添加回答
舉報(bào)
0/150
提交
取消