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

Commit 7a5a419b authored by Edgar Wang's avatar Edgar Wang
Browse files

[Expressive design] Update PreferenceCategory layout

Bug: 405104733
Test: visual
Flag: EXEMPT resource update
Change-Id: I7594d8f0da8cc78a4d6728e25730899a96034f4c
parent d0a35fea
Loading
Loading
Loading
Loading
+31 −8
Original line number Diff line number Diff line
@@ -29,14 +29,37 @@
    android:gravity="center_vertical"
    android:filterTouchesWhenObscured="false">

    <TextView
        android:id="@android:id/title"
    <include layout="@layout/settingslib_expressive_preference_icon_frame"/>

    <RelativeLayout
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:paddingStart="@dimen/settingslib_expressive_space_extrasmall4"
        android:paddingTop="@dimen/settingslib_expressive_space_extrasmall4"
        android:paddingBottom="@dimen/settingslib_expressive_space_extrasmall4"
        android:paddingBottom="@dimen/settingslib_expressive_space_extrasmall4">

        <TextView
            android:id="@android:id/title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="start"
            android:textAlignment="viewStart"
            style="@style/PreferenceCategoryTitleTextStyle"/>

        <TextView
            android:id="@android:id/summary"
            android:ellipsize="end"
            android:singleLine="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@android:id/title"
            android:layout_alignStart="@android:id/title"
            android:layout_gravity="start"
            android:textAlignment="viewStart"
            android:textColor="?android:attr/textColorSecondary"
            android:maxLines="10"
            style="@style/PreferenceSummaryTextStyle"/>

    </RelativeLayout>
</LinearLayout>
 No newline at end of file