Skip to content
Android Meow Bottm Navigation
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea MeowBottomNavigation.kt public variable Mar 11, 2019
gradle/wrapper
meowbottomnavigation updated version to 1.0.1 Mar 11, 2019
resources
sample README.md Feb 26, 2019
.gitignore first commit Feb 25, 2019
README.md updated version to 1.0.1 Mar 11, 2019
build.gradle
gradle.properties first commit Feb 25, 2019
gradlew
gradlew.bat
settings.gradle

README.md

Meow Bottom Navigation

A simple & curved & material bottom navigation for Android written in kotlin

Download

build.gradle (project path)

buildscript {
    repositories {
        jcenter() // this line need
    }
    ....
}

build.gradle (module path)

dependencies {
  implementation 'com.etebarian:meow-bottom-navigation:1.0.1'
}

use androidx by adding this lines to gradle.properties

android.useAndroidX=true
android.enableJetifier=true

Usage

add Meow Bottom Navigation in xml

    <com.etebarian.meowbottomnavigation.MeowBottomNavigation
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>

add menu items in code.

remember icons must be vector drawable

val bottomNavigation = findView(R.id.bottomNavigation)
bottomNavigation.add(MeowBottomNavigation.Model(1, R.drawable.ic_home))
bottomNavigation.add(MeowBottomNavigation.Model(2, R.drawable.ic_explore))
bottomNavigation.add(MeowBottomNavigation.Model(3, R.drawable.ic_message))
....

Customization

    <com.etebarian.meowbottomnavigation.MeowBottomNavigation
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:mbn_backgroundBottomColor="#ffffff"
        app:mbn_countBackgroundColor="#ff6f00"
        app:mbn_countTextColor="#ffffff"
        app:mbn_countTypeface="fonts/SourceSansPro-Regular.ttf"
        app:mbn_defaultIconColor="#90a4ae"
        app:mbn_rippleColor="#2f424242"
        app:mbn_selectedIconColor="#3c415e"
        app:mbn_shadowColor="#1f212121"/>

Listeners

bottomNavigation.setOnShowListener {
}
       
bottomNavigation.setOnClickMenuListener {
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.