I am using android.support.design.widget.BottomNavigationView. All is fine except the titles not showing when not selected.
<!-- layout -->
<android.support.design.widget.BottomNavigationView
android:id="@+id/bnvBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@android:color/background_light"
android:theme="@style/BottomNavigationTheme"
app:menu="@menu/bottom_navigation_main" />
<!-- theme -->
<style name="BottomNavigationTheme" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/orange</item>
</style>
What is missing?
If you are using Support Library 28 Try this,
app:labelVisibilityMode="labeled"
Full code
<android.support.design.widget.BottomNavigationView
android:id="@+id/bnvBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@android:color/background_light"
android:theme="@style/BottomNavigationTheme"
app:menu="@menu/bottom_navigation_main"
app:labelVisibilityMode="labeled"
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With