oneHamidreza / MeowBottomNavigation

Android Meow Bottm Navigation
http://etebarian.com
1.33k stars 198 forks source link

How can I change the icon image. #84

Open syyam opened 3 years ago

syyam commented 3 years ago

I want to change the icon images upon clicking on the tabs dynamically without having to create new instances of MeowBottomNavigation. Right now, let's say I have 3 buttons and I want two replace the icon of the first tab with another icon I am doing this bottom_nav.add(new MeowBottomNavigation.Model(1, R.drawable.ic_home)) but the bottom nav bar just adds 4th button with the new icon. There has to be a replace() function.