RecyclerView With Multiple View Types | Android Studio Tutorial

preview_player
Показать описание
In this Android Tutorial, we'll be create a RecyclerView with multiple view types, or multiple layouts in our recyclerView.
As usual, we use the regular ViewHolder, ReyclerView Adapters, but in addition we override the getItemViewType method of the Adapter.
Follow along the code in your Android Studio, and we'll be done in no time!

For Using RecyclerView and CardView in your project, add the following dependencies in your app level gardle file:

Chapters:
00:00 - Intro
00:35 - Creating Layout 1 for Main Content of RecyclerView
12:33 - Create Layout 2 for Ads in RecyclerView
14:10 - Creating Main Activity Layout
14:37 - Creating MainActivity Java File
16:58 - Overring getItemViewType for Implementing Multiple ItemViews
21:00 - Running and Checking

#android #recyclerview
Рекомендации по теме
Комментарии
Автор

Chapters:
00:00 - Intro
00:35 - Creating Layout 1 for Main Content of RecyclerView
12:33 - Create Layout 2 for Ads in RecyclerView
14:10 - Creating Main Activity Layout
14:37 - Creating MainActivity Java File
16:58 - Overring getItemViewType for Implementing Multiple ItemViews
21:00 - Running and Checking

vishalshrestha
welcome to shbcf.ru