bottom-navigation

Introduction: Example of Android BottomNavigationView
More: Author   ReportBugs   OfficialWebsite   
Tags:

This application is example of how to use BottomNavigationView.

  • This app is implemented in Kotlin
  • Disable BottomNavigationView shift mode.
    screenshot

Prerequisites

  • Android SDK 28
  • Android Build Tool 28.0.3
  • Android Support Repository 28.0.0
  • Android Plugin for Gradle 3.2.1
  • Kotlin gradle plugin 1.2.51

Getting Started

Build with Android Studio 3.2.1

Disable shifting mode

Since Support library 28

    <android.support.design.widget.BottomNavigationView
        ・・・
        app:labelVisibilityMode="labeled"
        ・・・
    />

Support library 27 or lower (target-sdk-27)

Use the extension of BottomNavigationView.

bottomNavigationView.disableShiftMode()

You need to configure proguard-rules.pro file if you want use ProGuard. Such as below:

-keepclassmembers class android.support.design.internal.BottomNavigationMenuView { 
    boolean mShiftingMode; 
}
Support Me
Apps
About Me
Google+: Trinea trinea
GitHub: Trinea