Basics of Android App development: RecyclerView #7 – Event Listener. Series Android RecyclerView: unlike in ListView where you can easily set an event listener (setOnClickListener) on the whole item, in the RecyclerView you need to set an event listener on a particular object in whole card. It is found more realistic than the whole item click because a user think to view the detail of an object, not the whole object.


In this tutorial, I will show how to set a simple event listener on an ImageView and open a new Activity using sending a selected item object via Intent putExtra and receive the data via getIntent().getSerializableExtras().


download source code



Warning: A non-numeric value encountered in /home/top12rev/public_html/ on line 352