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.

Playlist https://www.youtube.com/playlist?list=PL0DVoqvV_TdhRRBe_DL9oLtDymPxsZ4VL

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


download source code

Comments

comments