[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"
android:layout_width="match_parent"
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
android:id="@+id/checkbox"
android:layout_width="40dp"

View File

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

View File

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

View File

@@ -7,7 +7,8 @@
android:background="?clickableBackground"
android:layout_marginTop="@dimen/margin_half"
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
android:id="@+id/phone_icon"

View File

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

View File

@@ -5,7 +5,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
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
android:id="@+id/iv__remove_closed"

View File

@@ -5,7 +5,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
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
android:id="@+id/iv__bookmark_color"
android:layout_width="wrap_content"