ibrahimsn98 / SmoothBottomBar

A lightweight Android material bottom navigation bar library
MIT License
1.97k stars 255 forks source link

Tapping on tabs does nothing #40

Open aidansliney opened 4 years ago

aidansliney commented 4 years ago

Hey,

Great looking bottom bar you got here. I took a look by adding it to an empty template app from Android Studio 4 and it doesn't seem to work. The bar appears but it stays on the first tab.

  1. I added the Gradle lines.
  2. I created the menu.xml (FYI the readme says menu.xml but the SmoothBottomBar looks for menu_bottom )
  3. I added the SmoothBottomBar View
  4. Added the listeners in the mainActivity.

I stopped here to test it to see how it feels but as I say nothing happens when you touch any part of the bar. Pity.

Best of luck with it

ibrahimsn98 commented 4 years ago

Hi, are you running on Java?

aidansliney commented 4 years ago

Hey @ibrahimsn98 Kotlin. The empty Activity from the Gallery when you create the app then the first few steps above

Anshul1507 commented 4 years ago

Hi @aidansliney , are you using with Navigation Components ? If yes, then check your given id to items in your menu.xml file. It would be same as with nav_graph items/layouts id.