I have a simple layout with EditText and a Listview. Implemented custom ArrayList adapter to fill in the listview and custom filter so user can search for items displayed in the listview.
When I run the application, the focus is initially set to EditText and the keyboard is displayed as expected. But here is what I want to do:
- The focus should be initially set to ListView when the app is launched.
- If the user wants to enter text by selecting edittext control, then the keyboard should appear.
- ( At this point as the user inputs text, the listview items will change - I already implmented this)
- With the keyboard still open, if the user select an item in the listview, the keyboard should disappear and trigger the listview onItemClick function.
How can I accomplish this?