EditText and ListView are not working together

限于喜欢 提交于 2019-12-08 03:15:39

问题


I am having a weird problem where I have added an EditText inside a ListView and it is not clickable. When I do setFocusable:true in the EditText xml it is working but then the ListView items are not clickable. I have tried using android:descendantFocusability="afterDescendants" , blockDescendants and beforDescendants, but I read that these solutions works only for TextView and checkbox. Can somebody help to make both the things work together.
Thanks in advance.

来源:https://stackoverflow.com/questions/32946043/edittext-and-listview-are-not-working-together

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!