So, when you send the message, it appears on the right-hand side of the screen. The message that we send can be thought to be placed in a RecyclerView. You can add image, or video, or text or a combination of all in the same RecyclerView.Īnother example can be WhatsApp chatting. For example, the feed page on Facebook is an example of Multiple View. ![]() ![]() We can add multiple views in a RecyclerView. So, let's get started with the project setup. You can find the whole project used in this tutorial from here. Welcome to MindOrks! In this blog, we are going to learn how to use Multiple Views in RecyclerView. But what if you want to add different view types in the RecyclerView, you can add Multiple Views in the same RecyclerView. For example, the emails in the Gmail app, the feeds on Facebook and Instagram, messages in WhatsApp, all are done with the help of RecyclerView.īut one thing that you might have noticed is that while using RecyclerView, we define a view and the list items are displayed according to that view only. ![]() In order to display a list in your application, we all must have used RecyclerView in Android.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |