Fix bottom nav sometimes not hide correctly

Replace homemade animation with StateListAnimator
This commit is contained in:
RikkaW
2022-01-17 18:13:25 +08:00
committed by John Wu
parent ff8f3e766e
commit bfe6bc3095
4 changed files with 149 additions and 42 deletions
@@ -48,7 +48,7 @@
</com.google.android.material.appbar.AppBarLayout>
<com.google.android.material.bottomnavigation.BottomNavigationView
<com.topjohnwu.magisk.widget.ConcealableBottomNavigationView
android:id="@+id/main_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+4
View File
@@ -47,4 +47,8 @@
</attr>
</declare-styleable>
<declare-styleable name="ConcealableView">
<attr name="state_hidden" format="boolean" />
</declare-styleable>
</resources>