replace TextView in shimmer items with dummy ImageView with rounded corners
This commit is contained in:
parent
e835715b9c
commit
34c7f9d081
|
@ -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"
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue