• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2019 The Android Open Source Project
4
5  Licensed under the Apache License, Version 2.0 (the "License");
6  you may not use this file except in compliance with the License.
7  You may obtain a copy of the License at
8
9       http://www.apache.org/licenses/LICENSE-2.0
10
11  Unless required by applicable law or agreed to in writing, software
12  distributed under the License is distributed on an "AS IS" BASIS,
13  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  See the License for the specific language governing permissions and
15  limitations under the License.
16  -->
17
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:settings="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:background="?android:attr/selectableItemBackground"
24    android:gravity="center_vertical"
25    android:minHeight="?android:attr/listPreferredItemHeightSmall"
26    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd">
27
28    <LinearLayout
29        android:id="@android:id/widget_frame"
30        android:layout_width="wrap_content"
31        android:layout_height="match_parent"
32        android:gravity="center"
33        android:minWidth="56dp"
34        android:layout_marginEnd="16dp"
35        android:orientation="vertical"/>
36
37    <LinearLayout
38        android:id="@+id/icon_frame"
39        android:layout_width="wrap_content"
40        android:layout_height="wrap_content"
41        android:gravity="center_vertical"
42        android:minWidth="32dp"
43        android:orientation="horizontal"
44        android:layout_marginEnd="16dp"
45        android:paddingTop="4dp"
46        android:paddingBottom="4dp">
47        <androidx.preference.internal.PreferenceImageView
48            android:id="@android:id/icon"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            settings:maxWidth="@dimen/secondary_app_icon_size"
52            settings:maxHeight="@dimen/secondary_app_icon_size"/>
53    </LinearLayout>
54
55    <LinearLayout
56        android:layout_width="0dp"
57        android:layout_height="wrap_content"
58        android:layout_weight="1"
59        android:orientation="vertical"
60        android:paddingTop="16dp"
61        android:paddingBottom="16dp">
62
63        <TextView
64            android:id="@android:id/title"
65            android:layout_width="wrap_content"
66            android:layout_height="wrap_content"
67            android:singleLine="true"
68            android:textAppearance="?android:attr/textAppearanceListItem"
69            android:ellipsize="marquee"
70            android:fadingEdge="horizontal"/>
71
72        <LinearLayout
73            android:id="@+id/summary_container"
74            android:layout_width="match_parent"
75            android:layout_height="wrap_content"
76            android:visibility="gone">
77            <TextView
78                android:id="@android:id/summary"
79                android:layout_width="0dp"
80                android:layout_height="wrap_content"
81                android:layout_weight="1"
82                android:textAppearance="?android:attr/textAppearanceSmall"
83                android:textAlignment="viewStart"
84                android:textColor="?android:attr/textColorSecondary"/>
85
86            <TextView
87                android:id="@+id/appendix"
88                android:layout_width="0dp"
89                android:layout_height="wrap_content"
90                android:layout_weight="1"
91                android:textAppearance="?android:attr/textAppearanceSmall"
92                android:textAlignment="viewEnd"
93                android:textColor="?android:attr/textColorSecondary"
94                android:maxLines="1"
95                android:ellipsize="end"/>
96        </LinearLayout>
97        <ProgressBar
98            android:id="@android:id/progress"
99            style="?android:attr/progressBarStyleHorizontal"
100            android:layout_width="match_parent"
101            android:layout_height="wrap_content"
102            android:layout_marginTop="4dp"
103            android:max="100"
104            android:visibility="gone"/>
105    </LinearLayout>
106
107</LinearLayout>
108