Bottom Navigation View Rounded short BNVR it's basically BottomNavigationView with some custom to create navigation with rounded corners.
See the latest released BNVR version here.
// project level gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
// module level gradle
dependencies {
implementation 'com.github.adityaikhbalm:bottomnavigationrounded:2.1'
}
<!-- <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>
- Minimum Android SDK: Requires a minimum API level of 21.
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" />
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 |
This project is under MIT License. See the LICENSE file for details.