Bottom Navigation Bar 2021 | Fragments | Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ต.ค. 2024

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

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

    Highly good your are professional android programmer ;)

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

    can u do that but for kotlin?

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

    thanks! it's really helpful

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

    plz help. How to see the selected item page of the navigation drawer menu? its not going anywhere on clicking the items.

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

    17:34/ where this Id.
    "body_container" came from?

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

    None less than the Magic!!

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

    Thank you so much sir 💕

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

    What if we want to switch activity instead of fragment ? please answer.

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

    thank you! find hide statusbar!

  • @dt-k
    @dt-k 3 ปีที่แล้ว +5

    So where is the part of the video where you show us your code actually running and working?
    All you show us is that your code compiled successfully.

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

    Bro excelente video, me suscribo 👌🏻

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

    bro it always says error in attr bro , can you help me fixing this?

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

    help me, I can't figure out what the error is error: constant expression required
    case R.id.home:

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

      Got the same error in the switch case. Still can't find any solution

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

      @@Has_san03 I used "if" instead of "switch"

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

      @@mollyolly3173 I aslo used "if" statement. But now I'm facing the lag issue. Means whenever i click on the bottom navigation item, it shows a little bit of lag on the item icons. I have created custom designs for my fragments and i think the issue is that whenever i click on the navigation bar item, the view of the fragment is being created again and again which is causing the lag.
      "Sorry for my bad English"

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

      @@Has_san03 I have the same problem) but my professor didn't notice it so I moved on to other tasks and i don't know how can i help you, sorry. I'm not an English speaker either, but your English is good

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

      @@mollyolly3173 I have showed this to my professor and he told me that your fragment's view is being created again and again whenever you click on the item which is causing lag. I asked chatgpt to solve this problem and after using his methods the lag decreased too much but still there's a little bit of lag.

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

    its not working bro

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

    Bro i follwed everything but not while doing switch case it is not recognize menu_home id ...
    as well as this code has deprecated methods
    help!!

    • @Oskar-zt9dc
      @Oskar-zt9dc ปีที่แล้ว

      i have the same problem

    • @Oskar-zt9dc
      @Oskar-zt9dc ปีที่แล้ว

      i solved the problem
      navigationView.setOnItemSelectedListener(new BottomNavigationView.OnItemSelectedListener() {
      @Override
      public boolean onNavigationItemSelected(@NonNull MenuItem item) {
      Fragment fragment = null;
      switch (item.getItemId()){
      case R.id.nav_home:
      fragment = new HomeFragmant();
      break;
      case R.id.nav_stats:
      fragment = new StatsFragmant();
      break;
      case R.id.nav_settings:
      fragment = new SettingsFragmant();
      break;
      case R.id.nav_calender:
      fragment = new CalenderFragment();
      break;
      }
      getSupportFragmentManager().beginTransaction().replace(R.id.body_content, fragment).commit();
      return true;
      }
      });

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

    thanks a milion man

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

    friends video 12.23 to 14.05 stopped here. so skip that time.

  • @enterenegry-uh6ei
    @enterenegry-uh6ei 2 ปีที่แล้ว

    Item menu not displaying in bottom navigation view

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

    What is the music for !

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

    Thanks to share this material :) !! I already follow you!!

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

    Maybe can someone put his complete bild.gradle app Code herein I fucked it and cant find mistake

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

    16:17 where this ID "nav_home" came from?

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

    Thanks man..

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

    wrote 2021 method looks
    of 20011

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

    Thank you so much bhai....
    Subbed u
    Can u please make a vdo on implementation of
    ChipBottomNavigation
    BubbleBottomNavigation
    Java only
    Please?

  • @enterenegry-uh6ei
    @enterenegry-uh6ei 2 ปีที่แล้ว

    Pls give code

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

    Hello,
    I followed the tutorial but when I select a button, the color of the button don't stay black can you help me ?

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

    In the MainActivity, setOnNavigationItemReselectedListener instead of being public boolean, I get void by default, any help with that?
    (With void I have to double click to enter the Fragment)

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

      Add this dependency and syn your project
      implementation 'com.google.android.material:material:1.3.0'
      after complete syncing restart your android studio if you still getting the same problem message me on telegram

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

      @@codewithnitish5208 Oh, my friend. I had put onNavigationItemReselected
      instead of onNavigationItemSelected, thanks anyway!

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

    Sir

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

    Dependencies please
    Dependencies ke bina ye kaam run nahi ho raha he sab jagha error aa raha he.

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

      which Dependencies do you want?

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

      @@codewithnitish5208 Dependencies me jo link past karte he vo nahi di aap ne

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

      @@kundalikrathod2113
      implementation 'androidx.appcompat:appcompat:1.2.0'
      implementation 'com.google.android.material:material:1.3.0'
      implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
      testImplementation 'junit:junit:4.+'
      androidTestImplementation 'androidx.test.ext:junit:1.1.2'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

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

      mainey is project mai sirf ye dependancy use kiya tha

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

      @@codewithnitish5208 aap ka WhatsApp Number, Telegram.. Dijiye sir

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

    the f this video is not working

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

      i think you didnt watch the video correctly for me it worked

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

      @@debanjan_saha listener is deprecated, video is not working

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

    wtf is this music

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

    Fast

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

    Reply