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

Commit 40588095 authored by Edgar Wang's avatar Edgar Wang
Browse files

[Expressive design] Update PreferenceCategory layout

Bug: 385045369
Test: visual
Flag: EXEMPT resource update
Change-Id: I91b2ca4ce5de235ecb7e2e783e3f408fc03ea9bd
parent 771c6c3e
Loading
Loading
Loading
Loading
+42 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2025 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingRight="?android:attr/listPreferredItemPaddingRight"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    android:background="?android:attr/selectableItemBackground"
    android:baselineAligned="false"
    android:layout_marginTop="@dimen/settingslib_expressive_space_small1"
    android:gravity="center_vertical"
    android:filterTouchesWhenObscured="false">

    <TextView
        android:id="@android:id/title"
        android:paddingStart="@dimen/settingslib_expressive_space_extrasmall4"
        android:paddingTop="@dimen/settingslib_expressive_space_extrasmall4"
        android:paddingBottom="@dimen/settingslib_expressive_space_extrasmall4"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="start"
        android:textAlignment="viewStart"
        style="@style/PreferenceCategoryTitleTextStyle"/>
</LinearLayout>
 No newline at end of file
+1 −0
Original line number Original line Diff line number Diff line
@@ -40,6 +40,7 @@
    </style>
    </style>


    <style name="SettingsLibPreference.Category.Expressive">
    <style name="SettingsLibPreference.Category.Expressive">
        <item name="layout">@layout/settingslib_expressive_preference_category</item>
    </style>
    </style>


    <style name="SettingsLibPreference.CheckBoxPreference.Expressive">
    <style name="SettingsLibPreference.CheckBoxPreference.Expressive">