replace TextView in shimmer items with dummy ImageView with rounded corners

This commit is contained in:
Jannik 2022-09-20 15:20:49 +02:00
parent e835715b9c
commit 34c7f9d081
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
2 changed files with 13 additions and 14 deletions

View File

@ -29,14 +29,14 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/shimmer_image_highlight">
<TextView
android:id="@+id/shimmer_text_highlight_title"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
<ImageView
android:id="@+id/image_dummy_text"
android:layout_width="128dp"
android:layout_height="21dp"
android:layout_marginTop="7dp"
android:background="?shapeTextBackground"
android:textSize="16sp" />
android:layout_gravity="center"
app:srcCompat="@drawable/shape_rounded_corner"
tools:ignore="ContentDescription" />
<LinearLayout
android:layout_width="match_parent"

View File

@ -19,7 +19,6 @@
android:id="@+id/frame_image_progress"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/text_title"
app:layout_constraintDimensionRatio="H,16:9"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@ -35,17 +34,17 @@
</FrameLayout>
<TextView
android:id="@+id/text_title"
<ImageView
android:id="@+id/image_dummy_text"
android:layout_width="128dp"
android:layout_height="wrap_content"
android:layout_height="19dp"
android:layout_margin="11dp"
android:background="?shapeTextBackground"
android:textSize="15sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/frame_image_progress" />
app:layout_constraintTop_toBottomOf="@+id/frame_image_progress"
app:srcCompat="@drawable/shape_rounded_corner"
tools:ignore="ContentDescription" />
</androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.card.MaterialCardView>