Android tutorial (2020) - 60 - How Create BottomNavigation Bar / View / Tabs with Fragments

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Hi
    I am Shafaqat Ali & Welcome to My youtube channel Technical Skillz.
    About this video:
    This video is about android development. This is the 59th video of android development
    In this video we will How Create BottomNavigation Bar / View / Tabs with Fragments android studio.
    If you Like the video Press Like button and subscribe my Channel. Thank you so much.
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    DISCLAIMER: This Channel DOES NOT Promote or encourage Any illegal activities, all contents provided by This Channel is meant for EDUCATIONAL PURPOSE only.
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Our Social Links:
    RUclips : / technicalskillz
    Facebook : / bscsworld
    Twitter : / bscsworld
    instagram : / bscsworld
    Patreom : / shafaqat
    Email :bscsworld@gmail.com
    #technicalskillz
    #BottomNavigation
    #Fragments
    #BottomNavigationWithFragments
    #ShafaqatAli

Комментарии • 89

  • @lewanderer
    @lewanderer 4 года назад +9

    The only tutorial I found that actually worked. Thank you very much.

  • @renniekimutai6293
    @renniekimutai6293 2 года назад +1

    finally worked! thank you ❤

  • @jennagronvall4033
    @jennagronvall4033 3 года назад +2

    Thank you very much for this. This saved my life :) if you install android studio this year 2021 then put buidle.gradle Module.app under 'com.google.android.material: material: 1.2.1' otherwise it probably won't work.

  • @sammy3858
    @sammy3858 4 года назад +1

    Very nice easy tutorial to follow. Thanks.

  • @arbgoswami
    @arbgoswami 4 года назад +1

    I found a solution to a problem in your video and the method works perfectly!

  • @hanswurst500
    @hanswurst500 4 года назад +1

    nice one

  • @ilaigigi5710
    @ilaigigi5710 2 года назад +1

    Great tutorial! Thank you!

  • @njbsu
    @njbsu 3 года назад +1

    thank you shafaqat, good tutorial

  • @mohanbullabbai4774
    @mohanbullabbai4774 4 года назад +2

    Thank you so much !! it helped

  • @DefinitelyNotJohnTse
    @DefinitelyNotJohnTse 3 года назад +1

    amazing video thank you!

    • @technicalskillz
      @technicalskillz  3 года назад

      Thanks Dear .For more video please subscribe Channel/

  • @derrikmoloto5490
    @derrikmoloto5490 3 года назад +1

    Thank you very much

  • @lydiahayati283
    @lydiahayati283 4 года назад +1

    Thanks sir, clear explanation from Brunei

  • @mangeshpandit4660
    @mangeshpandit4660 4 года назад +1

    Best video ever

  • @afzal_sheikh0
    @afzal_sheikh0 3 года назад +1

    Please update it with new Navigation component intoduced.

  • @JoheOfficial
    @JoheOfficial 4 года назад +1

    Thanks, i am from indonesia

  • @fowzianisha184
    @fowzianisha184 3 года назад +1

    I need my app like login page after login excel and word should be open and Ill work in that thn print should be taken through that Android studio app using Java and XML is this is possible

    • @technicalskillz
      @technicalskillz  3 года назад

      Did not understand what you mean.
      bscsworld@gmail.com

  • @MarcelSchalk
    @MarcelSchalk 4 года назад +2

    Hi. I want to use app:layout_constraintBottom_toTopOf="id/@+bottomNav" in my fragments. But bottom-navigation can not be found. I've done the same as you. Any ideas?

    • @axelljungqvist
      @axelljungqvist 3 года назад

      android:layout_above="@id/bottomNav"
      the "+" you have in the id shouldnt be there in a reference

  • @Lu2211
    @Lu2211 4 года назад +1

    Very good tutorial! Helped a lot!

  • @amitsah68
    @amitsah68 3 года назад +1

    How to implement onitemclicklistener inside fragment class
    I am fetch data from firebase and store data in customer adapter but when i tried to implement onitemclicklistener it not work any one help me

  • @AniketKumar-hy5zo
    @AniketKumar-hy5zo 3 года назад

    Saved my day Thanks bro

  • @robertvandobutarbutar6964
    @robertvandobutarbutar6964 4 года назад +2

    why i cant make
    public boolean onNavigationItemReselected(@NonNull MenuItem item)
    android always bring me to
    public void onNavigationItemReselected(@NonNull MenuItem item)
    i fix it, my problem in word "onNavigationItemReselected" into "onNavigationItemSelected"..
    your tutorial completely work and make me understand how work your method,,
    Thank's from Indonesia................

    • @technicalskillz
      @technicalskillz  4 года назад +1

      Both are different methods,if you have already clicked any items then you can call public boolean onNavigationItemReselected(@NonNull MenuItem item) method otherwise it will not work.becaseu you are not going to re select any item

    • @robertvandobutarbutar6964
      @robertvandobutarbutar6964 4 года назад +1

      @@technicalskillz thank's sir, help me about splash screen sir

  • @justinjxhn
    @justinjxhn 3 года назад +1

    Thank you!

  • @akali975
    @akali975 4 года назад +1

    thanks from Brunei

    • @akali975
      @akali975 4 года назад +1

      @technical skillz keep up good work and make more video

    • @technicalskillz
      @technicalskillz  4 года назад

      Thank dear.

  • @freshtechtips
    @freshtechtips 4 года назад +2

    what the defrience between fragment and empty actavity?
    can i create Embty actavity and link it to the bottom navigation?

    • @technicalskillz
      @technicalskillz  4 года назад

      ruclips.net/video/gTvbV7iWrYI/видео.html
      Yes you can use.

  • @Normatov
    @Normatov 3 года назад +1

    is it pressed bottomnavigation button long time showed toast?

  • @MrVigo77
    @MrVigo77 3 года назад +1

    Technical Skillz Question: what if you had "Home" or "Android" going to another fragment?

    • @technicalskillz
      @technicalskillz  3 года назад

      You can Simply open new Activity after clicking on Android Or Home. You can Also add same Bottom navigation on that activity but that is not good way .

  • @yokotemaki8228
    @yokotemaki8228 4 года назад

    nice tutorial man but one thing i would like to remove the navbar for the rest of fragments

  • @SAKA-92
    @SAKA-92 3 года назад +1

    Issue with this is, if you are already in home fragment and you click home again your fragment is recreated?

    • @technicalskillz
      @technicalskillz  3 года назад +1

      You can check if saveInstanceState!=null the add new fragment .

    • @SAKA-92
      @SAKA-92 3 года назад

      @@technicalskillz or you can implement the reselected method:
      first set it like so: bottomNavBar.setOnNavigationItemReselectedListener(navReselectedListener);
      then create the new method:
      private BottomNavigationView.OnNavigationItemReselectedListener navReselectedListener =
      new BottomNavigationView.OnNavigationItemReselectedListener() {
      @Override
      public void onNavigationItemReselected(@NonNull MenuItem item) {
      // do nothing here
      }
      };
      Hope it helps.

  • @abdullahahmadkhan3929
    @abdullahahmadkhan3929 4 года назад

    i'm getting a blue color rectange over my navigation button with the text Search , User .. idk what went wrong can u help me how to remove that blue line and make my text to show in the middle instead of bottom?

  • @_Kwabena
    @_Kwabena 3 года назад

    After following step by step, I don't have the bottom icons such as search home and android appearing. Help?

  • @URNOTWANT
    @URNOTWANT 4 года назад +1

    How do you add activities to individual fragments?

    • @technicalskillz
      @technicalskillz  4 года назад

      You can check these videos to get solution:
      ruclips.net/p/PLYx38U7gxBf0ppLXUk951FS_oWAjdEDXD

  • @NeelamRana
    @NeelamRana 4 года назад

    My android studio version is 4.0.1 , this gets installed in my phone but doesn't work
    and shows "Unfortunately the app has stopped"

    • @NeelamRana
      @NeelamRana 4 года назад

      pls help

    • @technicalskillz
      @technicalskillz  4 года назад

      sen me screenshot of logcat error at bscsworld@gmail.com.I will respond you.

  • @guillemcliment9274
    @guillemcliment9274 4 года назад

    I have some trouble I dont understand. I have everything like you but when I run my code I see no icons in my BottomBar and the listeners are not working

  • @Ngonie_3
    @Ngonie_3 3 года назад +1

    why are we adding dependency of the material???

  • @jameskirkland9371
    @jameskirkland9371 3 года назад

    I'm having an issue where when I use the menuItem.getItemId line, I'm told the the symbol menuItem could not be resolved. Do I need to import something for this?

    • @nadhemlihiouiel3420
      @nadhemlihiouiel3420 3 года назад

      take a look att your "public boolean onNavigationItemSelected"

  • @18PregnantAndProud
    @18PregnantAndProud 4 года назад +1

    why do i have to click twice to move between fragments ? PLEASE HELP

  • @hizmetevdenfirebase111
    @hizmetevdenfirebase111 3 года назад +1

    when click, there is no transition between fragments

    • @technicalskillz
      @technicalskillz  3 года назад

      Follow complete video & every steps. If not works send me code screenshot at bscsworld@gmail.com

  • @rkroy7319
    @rkroy7319 4 года назад +1

    Back active bhi aata hai backs karne par

  • @KingSLayer816
    @KingSLayer816 4 года назад +1

    Everything is working fine but when I'm clicking icon is not getting highlighted but the fragments are changing can you please help

    • @technicalskillz
      @technicalskillz  4 года назад

      app:itemIconTint=""
      app:itemTextColor=""
      assign any color and add in xml of bottom navigation

    • @KingSLayer816
      @KingSLayer816 4 года назад

      @@technicalskillz if I use them both icon color and text color will be changed by default
      What I need is when I click on the icon the color should change

    • @technicalskillz
      @technicalskillz  4 года назад

      change item selected color.

    • @KingSLayer816
      @KingSLayer816 4 года назад

      @@technicalskillz hmm i'll try that .thanks for your quick response 🤗

    • @fernandofernandez8067
      @fernandofernandez8067 4 года назад +1

      In think there is an error. The return value in the onNavigationItermSelectred in ther mainActivity should be true.: return true.

  • @agytfreefire
    @agytfreefire 2 года назад

    Hello bhaiya on click colour kaise change kare

  • @kalgi0143
    @kalgi0143 4 года назад

    Pls don't mind this
    First of all you have clear your own doubt first watching this video make many confussions 😂

  • @pratheeshsai
    @pratheeshsai 4 года назад

    click to back fully close the app how to use addToBackStack click back go to home

  • @puh4532
    @puh4532 4 года назад +1

    This is strangely similar to "Coding In Flow" video. ruclips.net/video/tPV8xA7m-iw/видео.html

  • @AniqueAli
    @AniqueAli 3 года назад

    Thank you so much for this! It works like a charm.
    However, I wanted each fragment to be loaded on app start and not reload every time user switches. I posted it on stack overflow but no one has the solution.
    stackoverflow.com/questions/64269625/how-to-load-all-webview-fragments-on-app-start-and-never-reload-when-user-naviga/64269785?noredirect=1#comment113661426_64269785
    Can you figure this out? since I've learned fragments in your style so it'd like to keep this style.
    Thank you again.

  • @rkroy7319
    @rkroy7319 4 года назад +1

    Back kaise kare bro

    • @technicalskillz
      @technicalskillz  4 года назад

      I didn't understand what are you trying to say??

    • @rkroy7319
      @rkroy7319 4 года назад

      I have a problem, if I open project and multiple taps on home navigation bottom now press back button multiple times for go back .

  • @aaljasmi3974
    @aaljasmi3974 4 года назад

    Source code please

  • @moviearttv5604
    @moviearttv5604 4 года назад

    Source code?