Skip to content

Instantly share code, notes, and snippets.

@cdmunoz
Created January 21, 2019 00:39
Show Gist options
  • Save cdmunoz/7046494bce0e126cbd86e2064269a68e to your computer and use it in GitHub Desktop.
Save cdmunoz/7046494bce0e126cbd86e2064269a68e to your computer and use it in GitHub Desktop.
Bottom Navigation View with no shift mode using labelVisibilityMode
<android.support.design.widget.BottomNavigationView
android:id="@+id/main_bottom_navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="0dp"
android:layout_marginEnd="0dp"
android:layout_marginStart="0dp"
android:background="@color/bottombar_background"
android:theme="@style/Widget.BottomNavigationView"
app:itemBackground="@color/bottombar_background"
app:itemIconTint="@drawable/bottomnav_item_color"
app:itemTextColor="@drawable/bottomnav_item_color"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:labelVisibilityMode="labeled"
app:menu="@menu/main_bottom_navigation" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment