dependencies {
implementation 'com.github.florent37:enhanced-navigationview:(lastest version)'
}
EnhancedNavigationView extends google BottomNavigationView
<com.github.florent37.enhancednavigationview.EnhancedNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/colorBottomBar"
app:elevation="0dp"
app:itemIconTint="@color/nav_item_state_list"
app:itemTextColor="@color/nav_item_state_list"
app:menu="@menu/bottom_navigation_items" />
RoundRect shape of the bottom bar is providen by ShapeOfView
https://github.com/florent37/ShapeOfView
dependencies {
implementation 'com.github.florent37:shapeofview:1.2.0'
}
<com.github.florent37.shapeofview.shapes.RoundRectView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:elevation="12dp"
app:shape_roundRect_bottomLeftRadius="22dp"
app:shape_roundRect_bottomRightRadius="22dp"
app:shape_roundRect_topLeftRadius="8dp"
app:shape_roundRect_topRightRadius="8dp">
<com.github.florent37.enhancednavigationview.EnhancedNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@color/colorBottomBar"
app:elevation="0dp"
app:itemIconTint="@color/nav_item_state_list"
app:itemTextColor="@color/nav_item_state_list"
app:menu="@menu/bottom_navigation_items" />
</com.github.florent37.shapeofview.shapes.RoundRectView>
We welcome your contributions to this project.
The best way to submit a patch is to send us a pull request.
To report a specific problem or feature request, open a new issue on Github.
Author: Florent Champigny
Blog : http://www.tutos-android-france.com/
Fiches Plateau Moto : https://www.fiches-plateau-moto.fr/
Copyright 2018 florent37, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.