Code example for Gallery

Methods: setVisibility, getSelectedItemPosition