In the ListView, you have the setSelection()
method where you can select an index from your list to point at this index when you open the list. For example in a ListView with 100 numbers, if you put setSelection(34)
, when you open the ListView activity, it will be pointed at value 34 and not at the beginning of the list. I've always used this with list, but now I need to use this in a TableLayout. Does anyone know how and if it's even possible to do this? Thank you in advance.
obs: I tried to get the focus but it did not work.