How can I set the default item for my gallery?

I have a gallery and I want to set the default selected item when I run the action.

The goal is to automatically contain the title of the first element.

Is there anyway to do this?

Thanks a lot for the answers.

+4
source share
2 answers

Use this method:

 gallery.setSelected(true); gallery.setSelection(position); 
0
source

All Articles