• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- Layout for a Preference in a PreferenceActivity. The
18     Preference is able to place a specific widget for its particular
19     type in the "widget_frame" layout. -->
20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@android:id/widget_frame"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:minHeight="56dp"
25    android:gravity="center_vertical"
26    android:paddingEnd="?android:attr/scrollbarSize">
27
28    <ImageView
29        android:id="@+id/icon"
30        android:layout_width="wrap_content"
31        android:layout_height="wrap_content"
32        android:layout_marginStart="6dip"
33        android:layout_marginEnd="6dip"
34        android:layout_gravity="center"
35        android:contentDescription="@null" />
36
37    <RelativeLayout
38        android:layout_width="wrap_content"
39        android:layout_height="wrap_content"
40        android:layout_marginStart="2dip"
41        android:layout_marginEnd="6dip"
42        android:layout_marginTop="6dip"
43        android:layout_marginBottom="6dip"
44        android:layout_weight="1">
45
46        <TextView android:id="@android:id/title"
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content"
49            android:singleLine="true"
50            android:textAppearance="?android:attr/textAppearanceLarge"
51            android:ellipsize="marquee"
52            android:fadingEdge="horizontal" />
53
54        <TextView android:id="@android:id/summary"
55            android:layout_width="wrap_content"
56            android:layout_height="wrap_content"
57            android:layout_below="@android:id/title"
58            android:layout_alignStart="@android:id/title"
59            android:textAppearance="?android:attr/textAppearanceSmall"
60            android:maxLines="2" />
61
62    </RelativeLayout>
63
64</LinearLayout>
65