转发 这篇文章有角标的使用方式
使用三方BottomNavigationBar
gradle
implementation 'com.ashokvarma.android:bottom-navigation-bar:2.1.0'
xml
<com.ashokvarma.bottomnavigation.BottomNavigationBar
android:id="@+id/bnb"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@id/bvn"
app:layout_constraintStart_toStartOf="parent"
app:bnbActiveColor="#3A97FF"
app:bnbInactiveColor="#888888"
app:bnbBackgroundStyle="background_style_static"
app:bnbMode="mode_fixed"
/>
使用fixed模式实现简单的bottombar,注意fixed_height和botto