make bottom nav color configurable

This commit is contained in:
Dominik Schürmann 2020-07-13 13:35:39 +02:00
parent d0604cb886
commit f9e4506f2d
2 changed files with 3 additions and 1 deletions

View File

@ -149,7 +149,7 @@ public class MainActivity extends AppCompatActivity implements BottomNavigationB
bottomNavigation.setTabSelectedListener(this)
.setBarBackgroundColor(getBottomNavigationBackgroundColorResId())
.setInActiveColor(R.color.bottom_nav_items)
.setActiveColor(android.R.color.white)
.setActiveColor(R.color.bottom_nav_active)
.setMode(BottomNavigationBar.MODE_FIXED)
.addItem(new BottomNavigationItem(R.drawable.ic_updates, R.string.main_menu__updates)
.setBadgeItem(updatesBadge))

View File

@ -34,4 +34,6 @@
<color name="shadow">#cc222222</color>
<color name="perms_costs_money">#fff4511e</color>
<color name="bottom_nav_active">@android:color/white</color>
</resources>