ViewPager2 nos permite mostrar una colección de fragmentos o vistas para mostrárselas al usuario en un formato desplazable, que es especialmente popular en las pantallas de visualización de contenido y de incorporación. En este video, implementaremos ViewPager2 con el componente de navegación para crear pantallas integradas. Aprenderá a mostrar pantallas de incorporación solo la primera vez que un usuario inicie su aplicación. Y con el componente de navegación podemos hacerlo de forma elegante. Si no ha visto los siguientes videos, le recomiendo que lo haga antes de ver esto: Componente de navegación: Plantillas en vivo: Archivo de proyecto: Marca de tiempo 0:00 – Introducción 0:21 – Crear pantalla de presentación (fragmento) 1:02 – Crear carta de navegación 1:23 – Agregar fragmento de NavHost 1:50 – Crear fragmento de ViewPager 2:50 – Crear adaptador de ViewPager 3:58 – Crear 3 pantallas de incorporación (fragmentos) 7:13 – Lógica de herramientas para la pantalla de inicio 8:51 – Incorporación de lógica herramienta de capturas de pantalla 12:12 – Verifique si el usuario ha completado la incorporación 15:46 – Corregir el backstack de navegación 🏆 Mis cursos: (OBTENGA 2 MESES DE SUSCRIPCIÓN GRATIS) O 💎 Mi Google Play Store: 💡 Mi cartera:.
Compruebe también
Samsung ha lanzado una actualización de interfaz de usuario 3.1 para Android 11 | Buenas noticias | A51 M31s A71 A50 M51 A70 A50s y más
Samsung ha lanzado una actualización de interfaz de usuario 3.1 para Android 11 | Buenas …
no java 🙁
it worked, thanks!
You should have also included the onBackPressedDispatcher method to handle back press events while in the onboarding pages
Awesome😍
Tanks for tutorial. I want ask you something.For the responsive desing… background picture which one the hdpi to use should to be ?
You are a life saver! Excellent tutorial. Thanks a lot.
That ":" is really confusing me..
It can be anything like "extends", "object", or "variable".
For object, for example :
@Override
OnCreate(Bundle: ?savedInstanceState){super(savedInstanceState);
}
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:
view.findViewById<ViewPager2>(R.id.viewPager).adapter = adapter
Nice tutorial.
with splash screen.
thanks so much
How to get more illustration as you have on the onboarding screen.
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
We shall keep supporting you
Thanks for all your videos brother
Keep rocking
thanks for tutorial
wish i had it in java
Thanks, amazing tutorial. Could you tell how to make such vector drawables?
thx man, very cool
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!
i can't seem to reference the viewPager id inside ViewPagerFragment, any idea how to resolve this?
Great Video, looking forward to more content
ADAMSIN SEN LAN ADAAAAAMMMMM
THANK U SO MUCH!
how to download that drawings
Can you show me / us how to create a SplashScreen, ViewPager2 (for Intro) and BottomNavigation with Navigation Component?
Such a process:
first this: https://www.youtube.com/watch?v=Q0gRqbtFLcw
than: https://www.youtube.com/watch?v=COZ3j8Dwlog
and last: https://www.youtube.com/watch?v=Chso6xrJ6aU&t=367s
All in one as an app. Can you make a video about this? So as soon as I have the Spalsh and ViewPager through and arrive at "HomeFragment". I see the bottom navigation, but I can't click anything. I'm hanging there and would be very happy about a video about it.
You've been helping me constantly with your very good video tutorials! Thank you very much!
My huge problem now is, how can we move back to an activity from the last fragment
Hi @Stevdza-San
This is amazing helping me a lot.
However, I have questions
So instead of home fragment I did empty activity and last bit of video where it nav back to the onboarding screen. It still happen to mine so it navigate to the finish onboarding screen if I click back.
Also I am able to scroll the screen without click on "Next"
Not sure why, could you please help here.
Thank you
Hey really great video keep up the good work. If you want one suggestion what you can do is make things like these in one video and explain the things used like view pager 2 in detail in another video.
Thank you so much
Very cool and easy to learn!! thank you
hello, I have the same problem 7:47 in that minute how can I solve it, and not only that also when I put some images in other activities I get the same error problem in the application would help me a lot thanks.
Great work bro….keep doing
Hi,
I have two ViewPager2 layouts, one is a vertical scrollable one and the other is a card stack like layout. I want to include both these ViewPager2 layouts inside a root Recycler View. How can this be done? Any suggestions? Thanks!
Just what I needed. I was trying to do the Java version you did long ago and convert it to Kotlin on my own but it got way too messy.
Can you please make video on scrollable bottom navigation drawer
..
Like which is present in photo editor app
make video on custom views
Loved it 🙌🏻😍