TabLayout and Bottom Navigation using Fragments in Android

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • In this guide, we'll be learning how to use the TabLayout and Bottom Navigation using Fragments in your Android application. By the end of the guide, you'll be able to create an application with both tab layout and bottom navigation using fragments, making your applications more user-friendly and efficient!
    Download Source Code: youtube.codese...
    ########## For Doubts (ask it here) #########
    Discord: / discord
    Whatsapp group: whatsappgroup....
    #####################################
    ########## For Business Queries ##########
    Contact us for any business queries:
    Email: mail@codeseasy.com
    Phone number: +918281536333
    WhatsApp: whatsapp.codes...
    ####################################
    Find us on Social Media:
    Website: www.codeseasy.com
    Telegram: t.me/CodesEasy...
    Facebook: / codeseasy
    Instagram: / codeseasy
    Twitter: / codeseasyblog

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

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

    But i want to put all tabLayouts inside Home. How can i achieve this.

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      You can easily do it by watching this video.

    • @swoleminion3029
      @swoleminion3029 ปีที่แล้ว

      ​@@CodesEasy Should we call the viewPager with the adapter and the frameLayout from the HomeFragment like in the MainActivity?

  • @hiraethsmith-l1z
    @hiraethsmith-l1z ปีที่แล้ว +2

    Hi, I'm having an error in part of bottomNavigationView. on the case R.id.bottom_home: it says that "constant expression required". Can you help me? Thank you so much! Please do more codes about mobile app.

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

      Convert the switch statement into an if-else statement.

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

    Ques. I am creating side top navigation with tab layout , but after clicking on item in navigation item it swap to corresponding tabs. How to implement this? I need code for only onNavigationItemSelected() code only.

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      We could do a video on that sometime soon. Or if you need it right now just google it.

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

    Good 👍 job
    Please make a video on bottom navigation with drawer layout navigation. under using rating button and share button with all platforms

    • @CodesEasy
      @CodesEasy  ปีที่แล้ว

      Sure, we will 👍

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

    Thank you bro. This is really really helpful for me. This is totally work.

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

      Glad to hear that

  • @razirashidi3829
    @razirashidi3829 10 หลายเดือนก่อน +1

    pls make it by kotlin

    • @CodesEasy
      @CodesEasy  10 หลายเดือนก่อน

      Sure

  • @electronicaparatodos9841
    @electronicaparatodos9841 7 หลายเดือนก่อน

    gracias gran video pero tengo una duda yo le puedo colocar en tablayout solamente al botton navigacion de la ventana de home

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

    great work bro

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

      Thank you so much 😀