Recyclerview CardView Tutorial | RecylerView Tutorial
|Recyclerview with Search/Filter, CardView, and OnItemClickListener. Items in the recyclerview will be displayed in a cardview which will contain image name and description of the name. You can search/filter items within the recyclerview and when you click an item a new activity will appear and display details of clicked item.
In this tutorial I will post I will give a general step of the implementation then i will share a link you can find the individual post and also videos explain even tutorial.
In this recycler view with search/filter, CardView and OnItemClickListener we are going to divide it into 4 parts since it’s a long one.
PART 1:
Create Recyclerview with Image, Text, and Description:
Here we shall learn how to:
- Add recyclerview in our activity.
- Adding cardveiw library in our build Gradle
- Create layout that will hold recyclerview items ( image, name, description ) in a cardview
create a modal that will hold data
View post https://larntech.net/recyclerview-with-cardview/
PART 2:
Recyclerview Adapter
Here we shall learn how to:
- Create Adapter class that will extend RecyclerView ( this link data source to our recyclerView )
- Copy and Past our images
- Display our recyclerview
View post: https://larntech.net/recyclerview-adapter/
Part 3:
Adding OnclickListener in our RecyclerView:
Here we shall learn how to:
- Add interface class in our adapter
- Implement the interface in our activity
- Listen to item click.
- Create a new activity that will open when recyclerview item is clicked
- Open new activity when recyclerview is clicked
- Pass Data from clicked Recyclerview Item to our new activity.
View Post: https://larntech.net/recyclerview-onclicklistener/
PART 4:
Adding Search/Filter to Our recyclerView:
Here we shall learn how to:
- Implement filterable in our adapter
- Add menu items in android studio
- Inflate menu item and display in our activity on create method.
- Add another list of items that will contain filtered items.
- Perform the filter in our recyclerview.
View Post: https://larntech.net/recyclerview-search-filter-|recyclerview-tutorial/
For additional help, Kindly comment below.
More from android documentation on recycelerview: https://developer.android.com/jetpack/androidx/releases/recyclerview
For source code, you can get it with only $5 to support this work.
Hi