pocheshire / BottomNavigationBar

Bottom Navigation Bar for Xamarin
214 stars 70 forks source link

Change The Items front colors #58

Closed Xiryl closed 7 years ago

Xiryl commented 7 years ago

Hi,

how its possible to change the text color of the item in the menu?

i try to add the textcolor, but it dosent work, its always gray. idem the icon.

<item android:id="@+id/bb_menu_favorites" android:title="Manage Licenses" android:icon="@drawable/ic_settings" android:textColor="#ff0000"/>

how i can change the color of the text?

thanks.

Lanseer commented 7 years ago

I got the same problem with yours, is there any solutions?

Xiryl commented 7 years ago

add this in colors.xml <color name="bb_darkBackgroundColor">#e1461e</color>

than follow https://github.com/pocheshire/BottomNavigationBar/issues/5 (if link not work try copy and paste on your browser. or search on issues with title: Change background color of Bottom Bar #5)

my code example

     _bottomBar = BottomBar.Attach(this, savedInstanceState);
                _bottomBar.UseFixedMode();
                _bottomBar.UseDarkThemeWithAlpha(false);
                _bottomBar.SetBackgroundColor(Color.AliceBlue);
                _bottomBar.SetItems(Resource.Menu.bottombar_menu);
                _bottomBar.HideShadow();
                _bottomBar.SetActiveTabColor("#ffffff");
                _bottomBar.SetOnMenuTabClickListener(this);