• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 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_app which is nested inside of a collapsible preference group. -->
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:addStatesFromChildren="true"
22    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
23    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" >
24
25    <ImageView
26        android:id="@android:id/icon"
27        android:layout_width="24dp"
28        android:layout_height="24dp"
29        android:layout_gravity="center_vertical"
30        android:layout_marginEnd="32dp"
31        android:scaleType="fitXY" />
32
33    <LinearLayout
34        android:layout_width="0dp"
35        android:layout_height="wrap_content"
36        android:layout_weight="1"
37        android:minHeight="72dp"
38        android:paddingTop="16dp"
39        android:paddingBottom="16dp"
40        android:gravity="center_vertical"
41        android:orientation="vertical">
42
43        <TextView
44            android:id="@android:id/title"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:layout_toEndOf="@android:id/icon"
48            android:singleLine="true"
49            android:ellipsize="middle"
50            android:textAppearance="@android:style/TextAppearance.Material.Subhead"
51            android:textColor="?android:attr/textColorPrimary"
52            android:textAlignment="viewStart"
53            android:duplicateParentState="true" />
54
55        <TextView android:id="@android:id/summary"
56            android:layout_width="wrap_content"
57            android:layout_height="wrap_content"
58            android:textAppearance="@android:style/TextAppearance.Material.Body1"
59            android:textColor="@color/text_color_state"
60            android:maxLines="4" />
61
62    </LinearLayout>
63
64    <LinearLayout
65        android:layout_width="wrap_content"
66        android:layout_height="wrap_content"
67        android:minHeight="72dp"
68        android:paddingTop="16dp"
69        android:paddingBottom="16dp"
70        android:gravity="end|center_vertical"
71        android:orientation="horizontal">
72
73        <TextView
74            android:id="@+id/deletion_type_size"
75            android:layout_width="wrap_content"
76            android:layout_height="wrap_content"
77            android:paddingStart="12dp"
78            android:textAppearance="@android:style/TextAppearance.Material.Body1"
79            android:textColor="@color/text_color_state" />
80
81        <LinearLayout android:id="@android:id/widget_frame"
82            android:layout_width="wrap_content"
83            android:layout_height="match_parent"
84            android:gravity="center_vertical"
85            android:orientation="vertical" />
86
87    </LinearLayout>
88
89
90</LinearLayout>
91
92