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