Use TabLayout with ViewPager2 | Add swipe to change tabs in Android |

  Рет қаралды 14,580

Code Vedanam

Code Vedanam

2 жыл бұрын

In this tutorial we will learn how to use a Tab Layout with View Pager 2 in Android.
Blog URL
codevedanam.blogspot.com
Music: Early Hours
Musician: @iksonmusic

Пікірлер: 21
@akashshrivastava8422
@akashshrivastava8422 2 жыл бұрын
Great video 👍👍👍 Very helpful 👍👍
@CodeVedanam
@CodeVedanam 2 жыл бұрын
Glad you liked it
@janbergstrom645
@janbergstrom645 7 ай бұрын
This tutorial is up to date with changing conditions Sdk34 for fragments which many other tutorial videos are not. Good basic tutorial for the migration work.
@VarunPrasadoneplusone
@VarunPrasadoneplusone Жыл бұрын
Thanks for making this video
@khrsgr
@khrsgr 2 жыл бұрын
Keep it up bro!!!
@CodeVedanam
@CodeVedanam 2 жыл бұрын
Thanks bhai
@khrsgr
@khrsgr 2 жыл бұрын
@@CodeVedanam Apki vajah se mera bahut samay bach gaya isi tarah andoid ke chhote chhote problems par video banate rahe dhanyavad!
@christianb.1919
@christianb.1919 Жыл бұрын
Thank you for this tutorial bro!
@user-ce2dv4he9s
@user-ce2dv4he9s Жыл бұрын
Спасибо!
@yerbolkabzitov9216
@yerbolkabzitov9216 10 ай бұрын
Thanks 🔥
@Anvarbek_Atabayev
@Anvarbek_Atabayev 2 ай бұрын
In this video, the meaning is only to change the text, I think it would be better if you change the fragment
@factzfactory4956
@factzfactory4956 Жыл бұрын
Sir please teach backstack of fragments in tab layout
@teladoum9
@teladoum9 5 ай бұрын
Nice. But How use imagview instead TextView. For example, here You write Tab1, Tab2, I want in the place of tab1 we use image like in WhatsApp or other. Thank
@sonataarcfan9279
@sonataarcfan9279 22 күн бұрын
im getting null at FragmentSavedState, any idea?
@vsedit9258
@vsedit9258 Жыл бұрын
its nice bro but how to we add info in tab1 or tab2 i want every tab has diffrent info plz tell me bro i am almost stuck there
@CodeVedanam
@CodeVedanam Жыл бұрын
You can create three different fragments for your purpose
@vsedit9258
@vsedit9258 Жыл бұрын
@@CodeVedanam and how we get connect them with each other
@aliveandhopeful5080
@aliveandhopeful5080 Жыл бұрын
@@vsedit9258 use a switch case or if statement in your adapter createFragment to return your desired fragment based on position.
@soumya00
@soumya00 Жыл бұрын
I didn't understand Why ViewPager2 Adapter Constructor require Lyfecycle, and what is the purpose of "TabLayoutMedeator" object.... Please help me.....
@d7oom64z
@d7oom64z 2 жыл бұрын
source code pls
@groinache
@groinache Жыл бұрын
You music is way too loud against your voice, it's an annoying fact
CREATING SWIPABLE VIEWS WITH VIEWPAGER 2 - Android Fundamentals
11:56
Philipp Lackner
Рет қаралды 65 М.
🐞 Create a Android Tabbed Activity with new ViewPager2 and Fragments
16:32
CodeDocu Developer C# Asp Net Angular
Рет қаралды 13 М.
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 37 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 142 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 9 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 34 МЛН
TAB LAYOUT WITH VIEWPAGER 2 - Android Fundamentals
11:26
Philipp Lackner
Рет қаралды 40 М.
Tab layout using ViewPager2 using KOTLIN | Tab Layout | ViewPager2
12:44
Swipe gestures in Recycler View | Android
18:47
Mafia Codes
Рет қаралды 61 М.
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 129 М.
Android Onboarding Screens Using ViewPager2 | Android Studio | Java
35:05
Chirag Kachhadiya
Рет қаралды 45 М.
Swipeable Tab Rows - UX With Material3
14:38
Philipp Lackner
Рет қаралды 23 М.
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 37 МЛН