ViewPager2 with Navigation Component - Onboarding Screens | Android Studio Tutorial

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

ViewPager2 allows us display a collection of fragments or views to display to the user in a swipe-able format, especially popular within on-boarding and content display screens.

In this video we are going to implement ViewPager2 with Navigation component to create Onboarding screens. You will learn how to show Onboarding screens only the first time a user launches your app. And with Navigation component we can manage to do that in an elegant way.

If you haven't watched following videos I highly recommend you to do that before watching this one:

Timestamps
0:00 - Introduction
0:21 - Create Splash Screen (Fragment)
1:02 - Create Navigation Graph
1:23 - Add NavHost Fragment
1:50 - Create ViewPager Fragment
2:50 - Create ViewPager Adapter
3:58 - Create 3 Onboarding Screens (Fragments)
7:13 - Implement Logic for Splash Screen
8:51 - Implement Logic for Onboarding Screens
12:12 - Check if user has Completed Onboarding
15:46 - Fix Navigation Backstack
Рекомендации по теме
Комментарии
Автор

the first youtube video ive had to slow down 🤣
thanks heaps for the video

progtom
Автор

You are a life saver! Excellent tutorial. Thanks a lot.

infsamples
Автор

As always your videos are very educational and useful, I learned a lot. Keep growing. I wish you success on your channel, of which I am one more subscriber. Greetings from Caracas, Venezuela

VenewebTV
Автор

Wow ..hell lot of crazy concepts covered in super simple way, Thanks a lot, and the best part is u did all the complex stuff using nav graph console not from the Kotlin code, That was really useful..Thanks again.

bjugdbjk
Автор

Great tutorial! Small and simple but very functuional project. Exactly what i needed

lkeeN
Автор

You've been helping me constantly with your very good video tutorials! Thank you very much!

RodrigoGTomaz
Автор

theses videos are really helpful. I was working on a totally different project and was having with viewpager inside fragment

randy
Автор

Thank you very much !!! I needed help ... I made my app with ViewPager and wanted to migrate to ViewPager2 but it didn't work. I didn't know why. You saved me!

anayurquina
Автор

you are the best, for honest!!! thanks for your videos, bro!!!

baklazhann
Автор

Great presentation. I have some doubts if you dont mind. What if i want to add information collection fragments as onboarding screens for examlple asking to select country or language? Should i go the same way. and secodn thing is when we are redirected to home fragment how to play with bottom nav bar to switch between fragments like home, favorite and more

harwinderbenipal
Автор

That was clear and complete. Thank you very very very much :)

ErtBaran
Автор

17 minute video - "Ah that's gonna be a quick one."
2 hours later - "Wait, what...?" *video paused for the 300th time*

so much information 😂 but helped me very well

Lowbob
Автор

Thanks for all your videos brother
Keep rocking

cvtamilkannan
Автор

Looks good👍 Thanks for sharing!
One note: how can we avoid of creating of 3 equal fragments to comply with DRY concept? Is it possible to store data for slider in the array and make a slide prototype to just fill it with appropriate data on demand?

jd-chnl
Автор

you always share the things we need, thank you my friend, you are awesome

sertunc-ko
Автор

These videos makes me like android even more, thank you!

weistkfly
Автор

HELP ME PLEASE: There is an error message:
E/RecyclerView: No adapter attached; skipping layout

How can i fix this error?
I think this error regards to the code line from ViewPagerFragments:
= adapter

lu
Автор

Very cool and easy to learn!! thank you

mozhdehnouri
Автор

6:48 xml name-> viewPager is showing unresolved reference. Please help!!!!

ayushranjan
Автор

You should have also included the onBackPressedDispatcher method to handle back press events while in the onboarding pages

jeanlucrotolo
join shbcf.ru