Skip to content

BottomNavigationView with rounded shape for your Android Apps.

License

Notifications You must be signed in to change notification settings

adityaikhbalm/BottomNavigationRounded

Repository files navigation

BNVR

GitHub release (latest by date) API GitHub license

Bottom Navigation View Rounded short BNVR it's basically BottomNavigationView with some custom to create navigation with rounded corners.

Latest version

See the latest released BNVR version here.

✍️ Installation

Gradle setup

// project level gradle
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
// module level gradle
dependencies {
        implementation 'com.github.adityaikhbalm:bottomnavigationrounded:2.1'
}

Maven setup

<!-- <repositories> section of pom.xml -->
<repositories>
  <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
  </repository>
</repositories>
<!-- <dependencies> section of pom.xml -->
<dependency>
    <groupId>com.github.adityaikhbalm</groupId>
    <artifactId>bottomnavigationrounded</artifactId>
    <version>1.0</version>
</dependency>

💻 Compatibility

  • Minimum Android SDK: Requires a minimum API level of 21.

🚀️ Getting Started

XML Layout

BNVR usage is pretty simple, you just need put code in your xml layout.

<com.adityaikhbalm.bottomnavigationviewrounded.BottomNavigationViewRounded
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:menu="@menu/my_menu"
        app:bottomNavigationColor="@color/colorPrimary"
        app:bottomNavigationCornerRadius="10dp" />

Properties

The BNVR has default properties and you can change it as what you want, here are the properties:

Property Value Type Default Value Information
app:bottomNavigationColor reference/color Black / #000 Change the background color
app:bottomNavigationCornerRadius dimension 10dp Change corner radius

📝 License

This project is under MIT License. See the LICENSE file for details.