I’m writing a custom listview and I’ve put a EditText and textViews. The issue is focus on the list doesn’t work. When i touch the EditText, the softkeyboard appears but EditText loses focus. When I touch it again the softkeyboard changes and I’m able to write in the EditText after pressing ‘done’. EditText is cleared. Do you have any idea why this happens?
Share
This MIGHT just be a stupid thing i’m saying here, but you could try the following: place an
OnClickListeneron theListViewitems. If you click on an item in the list, and that item is anEditText, then use “requestFocus()” method to focus it.I’m thinking, but i might be wrong, that both the
EditTextandListViewitem (row) are requesting focus when you click on them, andListViewprobably “wins” 🙂 But this is just a guess, I might be wrong.