I have an edittext and a listview in a linear layout.Suppose there are 5 results currently visible in the list out of total 10.When i scroll down from the edit text on to the listview, the 5th item in the listview(I suppose its always the last one) gets the focus, instead of the first item! How should i solve this?
Share
1) Create a Handler, as a field in your Activity. Like this:
2) When you create the ListView, add a OnFocusChangeListener, like shown below.