简体   繁体   中英

Nested fragment inside a listview

I'm a perfect newbie and I'm trying to develop a simple Android app in which I have an activity with scrollable tabs + swipe navigation. Each tab should create a fragment with a listview inside and on clicking to an item of the list I should recreate another fragment with a new listview related to the item I had clicked before. How can I do that in the simpliest way? Do you have a really easy guide where I can refer to?

You can use bundle to pass data from one activity to another activity. The other way is using shared preferences, content providers, serialization. It all depends on what kind of data you need to pass and how big the data is.

What have you tried and where are you stuck. If you could post code, happy to help further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM