我正在使用BottomNavigation
作为布局,按下一个按钮并更改页面后,该按钮看起来好像我仍在按它。如果有人可以给我解决方案,它将对我有帮助。
XML文件
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
app:menu="@menu/bottom_nav_menu"
android:background="?android:attr/windowBackground"/>
故障: