Android Tab Layout + Badge Drawable + View Pager 2 | Material Design Components | Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • Android Tab Layout + Badge Drawable + View Pager 2 | Material Design Components | Android Studio
    In this tutorial we will create a tab layout including badge drawable with view pager 2.
    For more exciting android tutorials, please subscribe to my TH-cam channel and hit the bell icon for notifications.

ความคิดเห็น • 71

  • @amc6116
    @amc6116 4 ปีที่แล้ว +10

    Better than the official android docs! & In Java, that's hard to come by these days!

  • @forumtradecoinviet7486
    @forumtradecoinviet7486 2 ปีที่แล้ว

    I couldn't watch the video in the last seconds because the related videos were obscured. Thank you so much for sharing

  • @Hfamily
    @Hfamily 4 ปีที่แล้ว +2

    First , I have to thank Udacity from where I am learning basic android & getting errors because of old lessons(2016) and that is why I am getting here. Thank you Mr.Chirag. Long live conding.

    • @robertsterenchak8431
      @robertsterenchak8431 4 ปีที่แล้ว +1

      Looking at older stuff that doesn't work is frustrating...also why I'm here

  • @isakpretorius852
    @isakpretorius852 3 ปีที่แล้ว +3

    Thanks - Even though you didn't explain anything I was able to understand everything. Appreciated!

  • @jonsnow9758
    @jonsnow9758 3 ปีที่แล้ว +1

    What the f these official doc guys do?? Official Docs sucks.
    I read official doc for 2 hrs & tried migrating guide for ViewPager2 but couldn't succeed.
    This tutorial made it so simple.
    Thanks a lot man! It was too good.
    You earned a Subscriber.

  • @felixandersen424
    @felixandersen424 4 ปีที่แล้ว +2

    Thank you so much for this tutorial on TabLayout, BadgeDrawable, and ViewPager2. Easy to understand!

  • @hirwish1
    @hirwish1 4 ปีที่แล้ว +1

    Pretty good explanation. This is the best example that you can understand the code without saying anything. Thanks Chirag.

  • @AmanSharma-cv3rn
    @AmanSharma-cv3rn 3 ปีที่แล้ว +1

    You made it too easy

  • @humbertodosanjosdaher8408
    @humbertodosanjosdaher8408 3 ปีที่แล้ว +1

    Very Very easy to understand! Thanks!!!!!!!!!!!!!!!!!!!!!

  • @tiennguyenminh6454
    @tiennguyenminh6454 ปีที่แล้ว +1

    Thank you so much

  • @matts8249
    @matts8249 4 ปีที่แล้ว +2

    Thank you Chirag. You're the only one with an understandable viewpager2 java example/tutorial on the entire Internet. Almost everything is in kotlin. So annoying.

    • @nexgen.graphics
      @nexgen.graphics 4 ปีที่แล้ว +2

      Indeed, the viewpager2 seemed to work only on kotlin, thankfully chirag's tutorial came to the rescue 😃.

  • @bjorgenson23
    @bjorgenson23 4 ปีที่แล้ว +1

    Awesome video, works perfect and happy that it's in java. Glad to find a view that explains the tab layout/view pager 2 concept without using it as navigation

  • @swapnilpadaya163
    @swapnilpadaya163 4 ปีที่แล้ว

    After 4 days m able to get how ViewPager is implemented Thank You. Even With out audio or explaining your explained it so well.
    Now i know where should i go for more tutorials on android. Thank You.

    • @swapnilpadaya163
      @swapnilpadaya163 4 ปีที่แล้ว

      Recently encounter a bug while following this, Whenever my tab is selected icon of that tab disappears. Could you please help me out?

  • @raviel498
    @raviel498 3 ปีที่แล้ว +1

    Wow ❤️

  • @TimurDyushaliev
    @TimurDyushaliev 3 ปีที่แล้ว

    Thank you very much, i have watched some of videos about this topic, but only your video is helpful and easy to understand.

  • @nexgen.graphics
    @nexgen.graphics 4 ปีที่แล้ว +2

    Excellent tutorial. Nicely done in simple steps. Just what I was looking for. You earned a sub!!

  • @KapilTapsi
    @KapilTapsi 4 ปีที่แล้ว +1

    Superb video. I understood it at once. Keep the good work dev

  • @owsky19
    @owsky19 3 ปีที่แล้ว

    This was absolutely gold. Thank you so much!

  • @kalibra2121
    @kalibra2121 2 ปีที่แล้ว

    Very well done, Sir. To be even cleaner guys, in adapter you can add an arrayList of fragments from the outside and here in createFragment method just use yourList[position] and in the getItemCount method: yourList.size

  • @sebastianseno9285
    @sebastianseno9285 3 ปีที่แล้ว +1

    Thank you for your tutorial

  • @alzard6828
    @alzard6828 3 ปีที่แล้ว

    Such a good tutorial, thank you!

  • @HexArtificer-old-e9s
    @HexArtificer-old-e9s 4 ปีที่แล้ว

    A good video, only a few months ago too... Everything still works!
    Are there any changes you'd do to make it better, 3 months down the line?
    Thanks for the great video!

  • @Cool-c7y
    @Cool-c7y 3 ปีที่แล้ว

    Can we also implement the badges in bottom navigation

  • @rubenoganesyan1669
    @rubenoganesyan1669 4 ปีที่แล้ว +1

    Thank you!

  • @jonnyfant8148
    @jonnyfant8148 4 ปีที่แล้ว +2

    Thanks for this well produced video - easy to follow. Im relatively new to this. I get an error prob due to my setup wrt activex when i Run app on real phone or emmulator... The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES ... can yopu direct me to some HELP

    • @jonnyfant8148
      @jonnyfant8148 4 ปีที่แล้ว +1

      Not to worry ... 2 issues one was type (sorry) and another was i allwed com.google.android.material:material:1.2.0-alpha02 to be replaced by "alpha06" - all good now. Thanks again for a GREAT video !!

  • @madhavimallarpu8293
    @madhavimallarpu8293 3 ปีที่แล้ว

    How can we navigate between tabs using keypad right and left arrow by making viewpager swipe and tablayout item select disabled.

  • @digitalseth4396
    @digitalseth4396 4 ปีที่แล้ว +2

    WOW, Amazing Skill Sir. Digital Seth this side and can you share some tips that how to grow a coding channel like you

    • @meggang9566
      @meggang9566 4 ปีที่แล้ว +2

      I'm here because View pager 2 is a new standard over deprecated. I'd say make sure you're on top of standards, a lot of android tutorials are out of date, stay in date and people will naturally come to you. Especially, if you have a good quality mic, and explain things well. Good Luck!

    • @digitalseth4396
      @digitalseth4396 4 ปีที่แล้ว +1

      @@meggang9566 ok I got it

  • @rayj88ify
    @rayj88ify 4 ปีที่แล้ว

    Chirag Kachhadiya, good job. How to change the textsize in the badge?

  • @amtrax02
    @amtrax02 3 ปีที่แล้ว

    Is this solution good for dynamically added fragments? How can I implement methods eg. for double click on same tab there?

  • @woocer3007
    @woocer3007 4 ปีที่แล้ว +1

    Awesome dud

  • @yasithaherath5786
    @yasithaherath5786 4 ปีที่แล้ว +1

    thanks man

  • @SoCu2
    @SoCu2 3 ปีที่แล้ว

    Thank you very much for the tutorial, very complete, but there is something I do not get, I do not know if it is possible to do, and that is, put a PNG format icon, and give it a larger size, can it be done?

  • @freddygoudou801
    @freddygoudou801 4 ปีที่แล้ว

    Perfect Chirag ....

  • @nagendranm.s.4512
    @nagendranm.s.4512 4 ปีที่แล้ว +5

    Source Code please

  • @Aaditya_singhXz
    @Aaditya_singhXz 2 ปีที่แล้ว

    When i aded to mouch items tha tab will shown only fir latter or text not full name

  • @gauravmeghanathi
    @gauravmeghanathi 2 ปีที่แล้ว

    Tabconfiguration is not working on kotlin so how we set?
    tab text with tab icon on viewpager2

  • @mehulbisht9708
    @mehulbisht9708 4 ปีที่แล้ว

    thanx !

  • @oswaldoroman2012
    @oswaldoroman2012 4 ปีที่แล้ว

    Thank you so much bro!!

  • @marlonlom
    @marlonlom 4 ปีที่แล้ว

    Great one!

  • @bzgede3533
    @bzgede3533 3 ปีที่แล้ว

    Hello ;
    how can i open it. New fragment in the same area without leaving the tablayout when the button on the fragment is clicked.?,

  • @vanlalhruaia493
    @vanlalhruaia493 4 ปีที่แล้ว

    How to do?I need a tab 2 to show first when open app, instead of tab 1 ????

  • @aldairnavacorrea6524
    @aldairnavacorrea6524 3 ปีที่แล้ว

    Excuse me, you can put a tablayout inside a fragment and that in turn you can see fragments inside it, in short, there is a tablayout that leads to a fragment and that this fragment has a tablayout inside

  • @LokinhuKun
    @LokinhuKun 4 ปีที่แล้ว

    Not working properlly with android studio 4.0 build for android 10. The first name that should be on the center of the screen appears at the top center (I think that's a bug) and after I swipe to left, and back to first screen, it shows the text at center, but the icon fragments isn't clickable. Can you help me with this?

  • @shehreensaifi846
    @shehreensaifi846 4 ปีที่แล้ว

    Amazing

  • @alexissebastian7614
    @alexissebastian7614 11 หลายเดือนก่อน

    la fixa del maleanteo

  • @patata_CR9
    @patata_CR9 4 ปีที่แล้ว

    I have a problem , change icon color when active :c help
    Inglés nivel pollito

  • @priyvratdwivedi7893
    @priyvratdwivedi7893 3 ปีที่แล้ว

    The silent Coder ::CHIRAG KACHHADIYA

  • @dhruvsuvarna
    @dhruvsuvarna 4 ปีที่แล้ว

    why did we use that return 3 in the method for pager adapter

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว +1

      Because there are 3 tabs. Tab count in tablayout and page count in view pager must be same if you want sync between these two.

  • @meghsakalabhaktula2286
    @meghsakalabhaktula2286 4 ปีที่แล้ว

    Can you please help me to know.. how to save the notifications into this tab... just like facebook and quora notifs tab...
    I am expecting the notifications to be saved in my android app once the person login... same as facebook... please help me out with code.. or please send me a reference. To go througu

  • @BappaSaikh
    @BappaSaikh 4 ปีที่แล้ว

    i want to see tab layout design as like as chrome

  • @alonsodiaz3298
    @alonsodiaz3298 4 ปีที่แล้ว

    I have one activity that sends to another and this activity contains the tablayout and the viewpager. When I return to the previous activity and return to the activity that contains the viewer it only shows me only 1 fragment instead of showing 3 fragments. I can't show all 3, help

    • @alonsodiaz3298
      @alonsodiaz3298 4 ปีที่แล้ว

      is a StaggeredGridLayoutManager with images in a recyclerview

  • @slither366
    @slither366 4 ปีที่แล้ว

    ViewPager 2 is better than ViewPager, can you tell me why ? thanks.

  • @eventurersmobiletesting3734
    @eventurersmobiletesting3734 4 ปีที่แล้ว

    hi if i do with four tab items in tablayout then some text(tab title) getting ellipsize in the end but i want to make it fully visible to user.....so in that whats the remdey? can anyone help me out?

  • @user-de6dd1dd8e
    @user-de6dd1dd8e 3 ปีที่แล้ว

    Hi! Can you do it in Kotlin?

  • @kifkifa56
    @kifkifa56 4 ปีที่แล้ว

    How to increase the size of icons?

  • @ahsanbaloch221
    @ahsanbaloch221 4 ปีที่แล้ว

  • @ranaamin1606
    @ranaamin1606 4 ปีที่แล้ว

    how can i get source code ???

  • @preenxus3425
    @preenxus3425 4 ปีที่แล้ว

    source code pls!

  • @vicvic7968
    @vicvic7968 4 ปีที่แล้ว

    Eror

  • @anarqasimov4972
    @anarqasimov4972 4 ปีที่แล้ว

    thank you very much.