Skip to content

Commit

Permalink
Improve text constraints so me veiled loading looks better (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicbell authored Aug 12, 2024
1 parent c514f38 commit 78f689f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions listitem/src/main/res/layout/material_lists_list_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<com.google.android.material.textview.MaterialTextView
android:id="@+id/txt_headline"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:duplicateParentState="true"
android:ellipsize="end"
Expand All @@ -75,6 +75,7 @@
android:textColor="@color/headline_text_color_selector"
app:firstBaselineToTopHeight="@dimen/list_item_headline_first_baseline_to_top"
app:lastBaselineToBottomHeight="@dimen/list_item_headline_last_baseline_to_bottom"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@+id/txt_support"
app:layout_constraintEnd_toStartOf="@id/barrier_text_end"
app:layout_constraintHorizontal_bias="0"
Expand All @@ -85,15 +86,17 @@

<com.google.android.material.textview.MaterialTextView
android:id="@+id/txt_support"
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:textAppearance="?textAppearanceBodyMedium"
android:textColor="?colorOnSurfaceVariant"
app:firstBaselineToTopHeight="@dimen/list_item_supporting_text_first_baseline_to_top"
app:lastBaselineToBottomHeight="@dimen/list_item_supporting_text_last_baseline_to_bottom"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="@id/guide_bottom"
app:layout_constraintEnd_toEndOf="@id/txt_headline"
app:layout_constraintEnd_toStartOf="@id/barrier_text_end"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toStartOf="@id/txt_headline"
app:layout_constraintTop_toBottomOf="@id/txt_headline"
app:layout_constraintVertical_chainStyle="packed"
Expand Down

0 comments on commit 78f689f

Please sign in to comment.