I have a listview which contains textviews as its elements.
Setting selection and setting focus are two different things. If you want to just setSelection to some item then you can use below code.
mListView.setSelection(position);
But this definitely does not mean the Listview
is focused.For focussing you have to use
mListView.requestFocus();
For changing focus on click of a button you can place the code on onClick()
of the button.