Swipe between Fragments - Android Tutorial (ViewPager2 TabLayout)

preview_player
Показать описание
In this tutorial i will show you how you can swipe between fragments and send custom data between them. I will be using ViewPager2 and also show you how to setup Tabs connected to your swiping
Рекомендации по теме
Комментарии
Автор

looks good. can u pls make matlab tutorial

SebMeul
Автор

You hit some points i needed with this tutorials so thanks!

I do have a question:
Let's say i have a list of 9 items, in chunks of 3, so 3 lists of lists of items, and I wanna create fragments as many lists of lists i have (so in this case 3 fragments) but create it dinamically, how would i do that in your egs? I don't know how to tell the tab layout to creat each chunk of 3 a tab with the fragment that contains those first 3 lists, if it makes sense

The reason I want this is because what if the api changes and adds more itmes and it becomes more than 3 lists, my tab and fragments need to become 4 automatically..

Thanks

eNeruFPSsecondary
Автор

Cool tutorial but this doesn't work anymore. Starting around 9 minutes you use deprecated or non-existent things. Just a heads up to anyone

josephiuni
visit shbcf.ru