BottomNavigationView with Fragments | Android Studio Tutorial | 2024

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.พ. 2022
  • Presenting brand new video:
    In this video you will learn how to add Bottom Navigation bar or view to navigate through different fragments in our application.
    You will learn:
    - How to create bottom navigation bar
    - How to create fragments
    - How to make bottom navigation bar open fragments
    Just follow the steps in the video.
    More videos about Android Application Development will uploaded so get in touch with the channel.
    So you are no more far.You can be developer.
    If you want to support
    ☕ Buy me a coffee!"☕
    www.buymeacoffee.com/bimal
    ---------------------------------------------------------------------------------------------------------------
    GITHUB LINK :
    github.com/bimalkaf/Android_B...
    ---------------------------------------------------------------------------------------------------------------
    ACCESS THIS IMPORTANT PLAYLIST
    • Android Studio 4.0 | A...
    ---------------------------------------------------------------------------------------------------------------
    If you have any queries or doubt Comment below,I will reply.
    And Dont forget to Subscribe for more Stuffs.
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    Android Development Course for beginners HINDI
    • Android App Series (Fu...
    Android Full Project App Development Playlist:
    • Playlist
    Racing Game Development in Visual Studio Full Playlist:
    • RACING GAME DEVELOPMEN...
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    Like Our Facebook Page for regular Updates:
    / easytutoyt
    ------------------------------------------------------------------------------------------------------------------------------------------------------

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

  • @TheWantedDrummer
    @TheWantedDrummer 3 หลายเดือนก่อน +3

    For anyone getting a Constant Expression Required error in switch case use an if-else condition instead of switch case

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

      How to use if else condition

  • @mohamedtahabouhamidi9478
    @mohamedtahabouhamidi9478 2 ปีที่แล้ว +5

    bro you are a top tier tuto content creator

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

    Well done! nice , quick and to the point. Thanks

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

    Very well explained and make fragments more easy as they are thankyou for your efforts❤

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

    Thank you! Your video helps me so much.

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

    Thanks for the free content, bro!

  • @amitsaini2909
    @amitsaini2909 6 หลายเดือนก่อน

    Nice 👍

  • @CoderVip
    @CoderVip 2 หลายเดือนก่อน

    Thank you for fast, straight to the point and helpful video. Exactly what i need for my app, thank you!!

    • @EasyTuto1
      @EasyTuto1  2 หลายเดือนก่อน +1

      Thanks

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

    Great video, thanks for you contribution, really helped me

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

    thanks for straightforward tutorial in java

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

    Great Video

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

    Great video, it helped me a lot

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

    非常详细 感谢

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

    It's deprecated but it works, thank you!!!

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

    great video thanks bosss!!😍

  • @BROCKSGAMING
    @BROCKSGAMING 4 หลายเดือนก่อน

    great video , stright to the point , i am beginner in android and among others this was shortest video

    • @EasyTuto1
      @EasyTuto1  4 หลายเดือนก่อน

      Thanks.
      All the best. ❤️

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

    I subscribed my friend. Thank you for the tutorial!!1

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

    nice one you saved the day

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

    Very nice Video, halped me a lot! :)

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

    Thank you very much!

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

    worked perfectly well

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

    Great efforts... Very well explained 🔥

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

    I have seen few youtubers like u and u make very good tutorial ❤❤❤❤❤❤❤❤

  • @ANILKUMAR-cc3lb
    @ANILKUMAR-cc3lb 2 ปีที่แล้ว

    liked and subscribed ❤❤

  • @gimigubakosoro7310
    @gimigubakosoro7310 3 หลายเดือนก่อน

    Thanks alot

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

    Thank you so much💪

  • @emon5128
    @emon5128 5 หลายเดือนก่อน

    Thanks a lot man.

    • @EasyTuto1
      @EasyTuto1  5 หลายเดือนก่อน

      Most welcome

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

    Thanks a lot sr ♥️

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

    Very helpful vdo, thanks brother.

  • @user-wh7lu6jt2g
    @user-wh7lu6jt2g 4 หลายเดือนก่อน

    veryvery useful!!

    • @EasyTuto1
      @EasyTuto1  4 หลายเดือนก่อน

      Glad to hear that!

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

    Thank you sir, I really appreciate your help!

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

    how do you add a swipe function to this so that you will switch fragments everytime you swipe left or right?

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

    Thanks a lot for this video
    🙏🙏Please make video in kotlin about how to Add favourite button on images in home fragment in Bottom Navigation and add Favourited Images to other fragment with name Favourite and take those images from firebase and also save the favourite images in local database
    Please make in Kotlin 🙏
    Will you make please reply, if possible share the link of the video

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

    Thanks bro

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

    Thanks

  • @Monica-cq2hr
    @Monica-cq2hr ปีที่แล้ว

    Tqsm helped me

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

    thankyou so much

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

    🔥🔥🔥🔥🔥🔥

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

    it doesnt let me make this boolean: public void onNavigationItemReselected(MenuItem item) {} what to do

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

    Am not at all able to implement bottom navigation in my stuido,
    It acts as if there is no content in it ,and just stays collapsed all the time.(i.e. when i use wrap content for the bottom nav_bar ,it should expand in height, but its not happening ! ,even after attaching the menu resource file to the bottom nav ..) . Please help out !

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

      Hello, did you solve the problem? I have the same(((

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

    Thank you for this video; it is very nicely stated☺

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

    Best for my eyes ........!

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

    hi !
    i can display my fragments at the main activity

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

    i need help my public boolean onNavigationItemSelected is underlined red at boolean part i dont know how to solve it

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

    Good, it's very helpful.

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

    Bhai realm wala notes app tha na usme recyclerview me data update kaise kre... Plzz bhai help me🙏🙏🙏

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

    How can I change the bottom navigation theme

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

    Sir, when I run the application it shows that open app again... What may be the reason. Could you help me?

  • @serilmatthew8970
    @serilmatthew8970 12 วันที่ผ่านมา

    where did u get that home

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

    Thanks for this video, but how can I use the Fragment class because when I write code I get an error

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

      Same problem when writing

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

    thank youuuu

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

    THANKS! Can you do a tutorial where a button check your location and shows results depending on that location?

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

    मेने भी अपने app में bottom navigation के साथ fragments का use लिया पर मेरा app बार बार क्रैश हो रहा है इसका कुछ सलूशन पता हो तो बताना ,मेने हर एक fregment में api calling के through data load करवाया है जब data जल्दी load हो जाता है तब app क्रैश नहीं होता है पर जब धीरे load होता है या नहीं होता है तब app क्रैश हो जाता है इसका कुछ उपाय हो तो बताना

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

    its showing error in boolean in public boolean onNavigationItemReselected( MenuItem item)
    please help

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

    How to change icon color

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

    Why 3 dot is instead of icon I follow all the steps correctly please help me

  • @user-hj2ed5pe6j
    @user-hj2ed5pe6j 2 หลายเดือนก่อน

    This is a really good tutorial. But for some reason, the non selected item text color is white for light theme, and black for black theme. So, cannot see the non selected items. The icon color for non selected is black as usual, but the text is completely invisible. Only the selected one is visible. I know now, this is due to the fact I have more than 3 items, actually have 5 items, but cannot figure out how and where to change BottomNavigationBarType.fixed.

    • @EasyTuto1
      @EasyTuto1  2 หลายเดือนก่อน

      Check the color in theme.xml.
      Add colors in both day and night xml classes and use them.
      It will change accordingly.

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

    Hi bro but id of the fragment cant be able to written in the switch statement error is"CONSTRANT EXPRESSION IS REQUIRED"
    And also your github code isnt opening in the android studio

    • @onei3533
      @onei3533 ปีที่แล้ว +8

      if (item.getItemId() == R.id.Home) {
      getSupportFragmentManager().beginTransaction().replace(R.id.container,homeFragment).commit();
      }
      return false;
      just change switch to if it works on mine

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

    fragment restart every time when we change tab

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

    my setOnItemSelectedListener() is red why is that?

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

    Please come with Twitter Integration

  • @asimsahi5853
    @asimsahi5853 9 หลายเดือนก่อน

    It is showing error on switch case statement.

  • @larkshallow9128
    @larkshallow9128 4 หลายเดือนก่อน

    can you help me with my error:
    i'm getting an error "constant expression required" when i use case R.id.home, hope u can help me thanks!

    • @EasyTuto1
      @EasyTuto1  4 หลายเดือนก่อน +1

      Check you have added home menu option and if you have added, then check R is imported or not.
      Do gradle sync again if issue persists.

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

    i need a RecyclerView and Firebase information In Android Studio JAVA language.
    And One of the Short and Right method of Bottom navigation.
    thank you

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

      For recycle and firebase
      Video series is in process just this week it will come.
      Please stay tuned

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

      @@EasyTuto1 thanks bro 💪

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

    You get a like and a subscribe for putting a github link in my friend

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

      Its just for reference.
      Try to do it yourself rather than copying and pasting the code.

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

      @@EasyTuto1 I did but I broke something and I couldn’t for the life of me figure it out but I was able to fix it when I looked through your code, cheers!

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

      Thanks
      Cheers!

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

    no one is showing after orientation.

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

    Je viens de télécharger votre vidéo. je reviendrai avec commentaire après. Merci

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

    when I tried it myself. it's got going back to home icon again.

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

      Check the code.
      You have missed something.

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

    I wanna change icon background color when clicked

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

      same hre

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

      create a new color folder inside add color attribute and tag it to your icon i have also made a tut on it

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

    Hi sir how earning app make 🙏

  • @719_abhishekmishra3
    @719_abhishekmishra3 ปีที่แล้ว

    Hello bro
    I followed your steps but it's not showing any navigation bar without any error. Please help?

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

      Hello, did you solve the problem?

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

    my widget disapearing when i comeback to fragment

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

    How can I replace "first fragment" with "main activity" ??

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

      La activity en este caso es como el esqueleto/contenedor donde iran los fragments y el menu, si lo que quieres es llamar a otra pasarte a una activity desde el fragment, entonces hazlo como lo harías si fuese de activity a activity

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

    Android studio is saying constant expression required after case R.id.home: was showing red line under please help me

    • @qqqQqqQqqQqQQQW
      @qqqQqqQqqQqQQQW 11 หลายเดือนก่อน +1

      Hello, did you solve the problem?

    • @ryansumbele3552
      @ryansumbele3552 11 หลายเดือนก่อน +2

      @@qqqQqqQqqQqQQQW well what I did is I downloaded android studio dolphin and it worked there , but I think the core issue was the Gradle version I was using , the Gradle version that gave me this issue was 8.0 , in the version I downloaded I downgraded the Gradle to 7.4

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

      @@ryansumbele3552
      I'm glad you solved this problem)
      One day I thought about this problem and decided that I would just replace the switch - case with if-else. Thanks for answering ^^

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

    thanks eay tutu family

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

    not working and the video is cut at 7.14 / 7.15 the problem is at this point constant expression is required switch case not likely to work here

    • @poojasinghyadav2941
      @poojasinghyadav2941 11 หลายเดือนก่อน +3

      Go to the switch case and press alt+enter and select if else problem solved.

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

    Seria bueno que especifiques desde el inicio que aún es java y no Kotlin