Skip to content

Commit

Permalink
Fix home page card text cut off
Browse files Browse the repository at this point in the history
Signed-off-by: DrDisagree <[email protected]>
  • Loading branch information
Mahmud0808 committed Nov 12, 2024
1 parent 9f57c1d commit 1b5bf8b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/src/main/res/layout/view_home_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
app:layout_constraintTop_toTopOf="parent" />

<LinearLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="35dp"
android:layout_marginVertical="35dp"
android:layout_marginStart="35dp"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
Expand All @@ -43,6 +43,11 @@
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoSizeMaxTextSize="100sp"
android:autoSizeMinTextSize="12sp"
android:autoSizeStepGranularity="2sp"
android:autoSizeTextType="uniform"
android:maxLines="1"
android:text="@string/home_card_title"
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"
android:textColor="@color/material_dynamic_neutral20"
Expand All @@ -53,7 +58,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.9"
android:ellipsize="marquee"
android:fontFamily="sans-serif-medium"
android:maxLines="1"
android:text="@string/home_card_subtitle"
android:textAppearance="@style/TextAppearance.Material3.BodySmall"
android:textColor="@color/material_dynamic_neutral10"
Expand Down

0 comments on commit 1b5bf8b

Please sign in to comment.