[android] Add animation in recyclerview

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-12-18 19:59:42 +01:00
parent ed6dcc5cb2
commit 48230e26c6
7 changed files with 14 additions and 7 deletions

View File

@@ -5,7 +5,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/bg_clickable_card"> android:background="@drawable/bg_clickable_card"
android:animateLayoutChanges="true">
<com.google.android.material.checkbox.MaterialCheckBox <com.google.android.material.checkbox.MaterialCheckBox
android:id="@+id/checkbox" android:id="@+id/checkbox"
android:layout_width="40dp" android:layout_width="40dp"

View File

@@ -6,7 +6,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?clickableBackground" android:background="?clickableBackground"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal"
android:animateLayoutChanges="true">
<com.google.android.material.checkbox.MaterialCheckBox <com.google.android.material.checkbox.MaterialCheckBox
android:id="@+id/checkbox" android:id="@+id/checkbox"
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -8,7 +8,8 @@
android:focusable="true" android:focusable="true"
app:cardBackgroundColor="?cardBackground" app:cardBackgroundColor="?cardBackground"
app:cardCornerRadius="12dp" app:cardCornerRadius="12dp"
app:cardElevation="2dp"> app:cardElevation="2dp"
android:animateLayoutChanges="true">
<RelativeLayout <RelativeLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"

View File

@@ -7,7 +7,8 @@
android:background="?clickableBackground" android:background="?clickableBackground"
android:layout_marginTop="@dimen/margin_half" android:layout_marginTop="@dimen/margin_half"
android:paddingStart="@dimen/margin_half_plus" android:paddingStart="@dimen/margin_half_plus"
android:paddingEnd="@dimen/margin_half_plus"> android:paddingEnd="@dimen/margin_half_plus"
android:animateLayoutChanges="true">
<com.google.android.material.imageview.ShapeableImageView <com.google.android.material.imageview.ShapeableImageView
android:id="@+id/phone_icon" android:id="@+id/phone_icon"

View File

@@ -5,7 +5,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
style="@style/MwmWidget.M3.Editor.CardView" style="@style/MwmWidget.M3.Editor.CardView"
android:layout_marginBottom="@dimen/margin_half" android:layout_marginBottom="@dimen/margin_half"
android:layout_marginTop="@dimen/margin_half"> android:layout_marginTop="@dimen/margin_half"
android:animateLayoutChanges="true">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -5,7 +5,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/editor_height_closed" android:layout_height="@dimen/editor_height_closed"
android:paddingTop="@dimen/margin_base"> android:paddingTop="@dimen/margin_base"
android:animateLayoutChanges="true">
<com.google.android.material.imageview.ShapeableImageView <com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv__remove_closed" android:id="@+id/iv__remove_closed"

View File

@@ -5,7 +5,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/bg_clickable_card"> android:background="@drawable/bg_clickable_card"
android:animateLayoutChanges="true">
<com.google.android.material.imageview.ShapeableImageView <com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv__bookmark_color" android:id="@+id/iv__bookmark_color"
android:layout_width="wrap_content" android:layout_width="wrap_content"