jumpger.blogg.se

Android studio listview with different 2 layouts
Android studio listview with different 2 layouts










android studio listview with different 2 layouts

Note: Refer Implementing a Heterogeneous ListView guide on how to inflate multiple item types within a ListView. This guide will explain how to inflate multiple view types inside your RecyclerView widget based on the item type. RecyclerView can also be used to inflate multiple view types in situations where your list might be heterogeneous, in the sense, based on the response from the server, there might be a requirement for inflating different types of layouts (example: Consider facebook home feed where there are a variety of stories such as a status update, location update, single image, image album, video, etc). We will be building on top of the classes from the above guide so it is very important that you have the basic RecyclerView up and running.

android studio listview with different 2 layouts

Make sure you are familiar with RecyclerView by going through the following guide for basic usage of a RecyclerView.












Android studio listview with different 2 layouts