Skip to content

checklist/NestedFragmentsRecycler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nested Fragments with Recycler

This project demonstrates how to Nest Fragments using a RecyclerView on Android. We are nesting FragmentA in the main activity. FragmentA has a RecyclerView with and adapter: FragmentAAdapter. Each row in the adapter contains a FrameLayout which at run time loads FragmentB into it. FragmentB only contains a simple TextView

Due to having to add multiple Fragments inside the adapter (which in return is nested in FragmentA), we need to give each layout for FragmentB its own unique id. We do that by generating it manually and setting it.

About

Example of Nested Fragments with a Recycler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages