Code example for Gallery

Methods: setAdapter, setOnItemClickListener