Code example for GridView

Methods: setOnScrollListenersetAdapter, setOnItemClickListener