Replace ComposePreference with androidx.preference.Preference. ANC toggle will still use Compose until SegmentedButtonPreference is ready. BUG: 402036473 Test: local tested Flag: com.android.settings.flags.enable_bluetooth_device_details_polish Change-Id: I5114af8f2d679d695b3c5ef4d7be2874245c435e
74 lines
3.0 KiB
XML
74 lines
3.0 KiB
XML
<?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.
|
|
-->
|
|
<FrameLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingEnd="?android:attr/scrollbarSize"
|
|
android:background="?android:attr/selectableItemBackground">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:background="@drawable/device_details_spotlight_preference_background" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
android:gravity="center_vertical">
|
|
|
|
<ImageView
|
|
android:id="@+android:id/icon"
|
|
android:layout_width="24dip"
|
|
android:layout_height="24dip"
|
|
android:layout_gravity="center"
|
|
android:scaleType="center"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:layout_weight="1">
|
|
|
|
<TextView android:id="@+android:id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:ellipsize="marquee"
|
|
android:fadingEdge="horizontal" />
|
|
|
|
<TextView android:id="@+android:id/summary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@android:id/title"
|
|
android:layout_alignStart="@android:id/title"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:maxLines="4" />
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</FrameLayout>
|