首页 » Andorid » 临时分类 » 正文

bottom-navigation

Bottom Navigation

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

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; 
}
下载 (0)

发表评论