Is there setSelection in Tablelayout or Tablerow?

Asked

Viewed 32 times

0

Listview has the method setSelection() 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 Listview Activity, it will be pointed at 34 instead of at the beginning of the list. I’ve always used this with a list, but now I need to use it in a Tablelayout. Does anyone know how and if it is even possible to do this? Thanks in advance.

Obs: I tried to get the Focus but it didn’t work.

  • Vc set Focus to true in the line you wanted, so far so good, now try to set Focus to false for all other layout components.

  • didn’t work either.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.