[app] Change tab indicator animation mode to elastic (#601)

This commit is contained in:
tehcneko 2021-05-17 11:38:55 +08:00 committed by GitHub
parent 9c1bbd5606
commit 418b80a63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 9 deletions

View File

@ -52,7 +52,7 @@
android:layout_width="match_parent"
android:layout_height="@dimen/tab_layout_height"
android:background="@android:color/transparent"
app:tabMode="fixed">
app:tabIndicatorAnimationMode="elastic">
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"

View File

@ -50,7 +50,8 @@
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="@dimen/tab_layout_height"
android:background="@android:color/transparent" />
android:background="@android:color/transparent"
app:tabIndicatorAnimationMode="elastic" />
</LinearLayout>
</rikka.material.widget.AppBarLayout>
@ -58,4 +59,4 @@
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>