Android Studio Tutorial - Recycler View with Multiple view types edmt dev

EDMT Dev · 56K views · 2017 · 30:52

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions where a RecyclerView needs mixed item layouts, such as a header or status section scrolling together with list items.

Recommended by 3 people across 3 different months, 2017 to 2019.

What it is

A 30-minute Android Studio tutorial from the EDMT Dev channel showing how to build a RecyclerView whose adapter displays several different item layouts, using multiple view types. The presenter says it grew out of a problem met in real projects and walks through the solution step by step.

What people said

Recommends Marcel Wirth · 2017-10 · Stack Overflow · on “Adding a expandable menu Item in a Navigation Drawer”

[this video] Here is some Tutorial vor a ListView with expandable submenu. So I adapted the code a bit for my use

Recommends Ahmad Sheraz · 2019-03 · Stack Overflow · on “how to filter the recycler view card view and show that card on top that is as 1st cardView based on some boolean flag?”

Make adapter with multiple view holder and bind specific layout as first as your condition multiple item recyclerview [this video]

Recommends kaushalyap · 2019-09 · Stack Overflow · on “View inside scrollview doesn't scroll while scrolling recyclerview”

In order for status part to scroll with posts in the recyclerview, status part should also be an item in the recyclerview, so you need recyclerview with multiple view types for this case. Plase read: How to create recyclerview with multiple view types. [LINK] Just remove the Framelayout it's not necessary, when using recyclerviews with multiple view types. Minor improvements Remove the outer scrollview its unnecessary, since recyclerview by default is scrollable. Edit : In order for status part to be scrollable horizontally, status part item layout should contain a recyclerview where LinearLayoutManager orientation set to horizontal. [LINK] Remember to implement the adapter class for the hor

Recommends kaushalyap · 2019-09 · Stack Overflow · on “View inside scrollview doesn't scroll while scrolling recyclerview”

yes its possible, updated the answer. please make sure to upvote and accept the answer if it satisfy you. You may look at this tutorial [this video]