/BottomNavigationCircles-Android

A library providing a custom Bottom Navigation Bar view

Primary LanguageKotlinMIT LicenseMIT

BottomNavigationCircles-Android

out

Instalation

Add jitpack.io in your top-level build.gradle:

allprojects {
        repositories {
                ...
                maven { url 'https://jitpack.io' }
        }
}

Add the dependency:

dependencies {
        implementation 'com.github.Kwasow:BottomNavigationCircles-Android:<Version Tag>'
}

Available versions:

Release Version Tag Comment
stable 1.0 material [version <= 1.3.0]
beta 1.1-beta5 material [version >= 1.4.0]

Usage

Just add the view to your layout:

<androidx.coordinatorlayout.widget.CoordinatorLayout
        android:layout_height="match_parent"
        android:layout_width="match_parent">

    <com.github.kwasow.bottomnavigationcircles.BottomNavigationCircles
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:layout_gravity="start|bottom"
        app:menu="@menu/menu_bottom_navigation_bar"/>

</androidx.coordinatorlayout.widget.CoordinatorLayout>

The view is an extension to the material.io BottomNavigationView, and implements all it's functions. The following custom properties are available:

navigationView.circleColor = Color.RED
navigationView.darkIcon = true

Or through XML:

app:circleColor="@color/red"
app:darkIcon="true"