Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56f4e644 authored by Andrej Karadžić's avatar Andrej Karadžić
Browse files

Make "Learn more" link horizontally centered in CollapsableTextView

Test: manual test
Fixes: 400986028
Change-Id: I62625a33ffbf40a107288a4b5ae2aff6dff045ac
parent 94f13f4c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -44,10 +44,11 @@

    <com.android.settingslib.widget.LinkableTextView
        android:id="@+id/settingslib_expressive_learn_more"
        android:layout_width="wrap_content"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toBottomOf="@android:id/title"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:paddingTop="@dimen/settingslib_expressive_space_extrasmall6"
        android:textAlignment="viewStart"
        android:clickable="true"
+1 −0
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ class CollapsableTextView @JvmOverloads constructor(
                Gravity.CENTER_VERTICAL, Gravity.CENTER, Gravity.CENTER_HORIZONTAL -> {
                    centerHorizontally(titleTextView)
                    centerHorizontally(collapseButton)
                    centerHorizontally(learnMoreTextView)
                }
            }
            isCollapsable = getBoolean(isCollapsableAttr, DEFAULT_COLLAPSABLE)