Code example for Gallery

Methods: setAdaptersetSpacing, setOnItemClickListener, setOnItemSelectedListener