I have a ListView , and in this ListView I have a row with some TextViews and EditTexts in it. When I click anywhere on the line, I want the EditText focus so that the text can be entered.
The problem is that I cannot get this to work. When I put an EditText in a ListView , OnItemClick will not respond when I click on the ListView .
I tried using focusable="false" in EditText , and it allowed me to click on the ListView again, but I could not get EditText to get focus even after setting focusable to true. Then I tried using android:descendantFocusability="beforeDescendants" in the ListView , but it didn't seem to make any changes, it still wouldn't work.
Does anyone have an idea on what I can do to make it work?
source share