Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / resolver_list_with_default.xml
blob8101183d4e24e61bcc1d304b9ee8e079e5798f0e
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4 * Copyright 2014, The Android Open Source Project
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 *     http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 -->
19 <com.android.internal.widget.ResolverDrawerLayout
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="match_parent"
22     android:layout_height="match_parent"
23     android:maxWidth="@dimen/resolver_max_width"
24     android:maxCollapsedHeight="144dp"
25     android:id="@id/contentPanel">
27     <LinearLayout
28         android:layout_width="match_parent"
29         android:layout_height="wrap_content"
30         android:layout_alwaysShow="true"
31         android:orientation="vertical"
32         android:background="@color/white"
33         android:elevation="8dp">
35         <LinearLayout
36             android:layout_width="match_parent"
37             android:layout_height="64dp"
38             android:orientation="horizontal">
40             <ImageView
41                 android:id="@+id/icon"
42                 android:layout_width="24dp"
43                 android:layout_height="24dp"
44                 android:layout_gravity="start|top"
45                 android:layout_marginStart="16dp"
46                 android:layout_marginEnd="16dp"
47                 android:layout_marginTop="20dp"
48                 android:src="@drawable/resolver_icon_placeholder"
49                 android:scaleType="fitCenter" />
51             <TextView
52                 android:id="@+id/title"
53                 android:layout_width="0dp"
54                 android:layout_weight="1"
55                 android:layout_height="?attr/listPreferredItemHeight"
56                 android:layout_marginStart="16dp"
57                 android:textAppearance="?attr/textAppearanceMedium"
58                 android:gravity="start|center_vertical"
59                 android:paddingEnd="16dp" />
61             <LinearLayout
62                 android:id="@+id/profile_button"
63                 android:layout_width="wrap_content"
64                 android:layout_height="48dp"
65                 android:layout_marginTop="4dp"
66                 android:layout_marginEnd="4dp"
67                 android:paddingStart="8dp"
68                 android:paddingEnd="8dp"
69                 android:paddingTop="4dp"
70                 android:paddingBottom="4dp"
71                 android:focusable="true"
72                 android:visibility="gone"
73                 style="?attr/borderlessButtonStyle">
75                 <ImageView
76                     android:id="@+id/icon"
77                     android:layout_width="24dp"
78                     android:layout_height="24dp"
79                     android:layout_gravity="start|center_vertical"
80                     android:layout_marginEnd="?attr/listPreferredItemPaddingEnd"
81                     android:layout_marginTop="12dp"
82                     android:layout_marginBottom="12dp"
83                     android:scaleType="fitCenter" />
85                 <TextView
86                     android:id="@id/text1"
87                     android:layout_width="wrap_content"
88                     android:layout_height="wrap_content"
89                     android:layout_gravity="start|center_vertical"
90                     android:layout_marginEnd="?attr/listPreferredItemPaddingEnd"
91                     android:textAppearance="?attr/textAppearanceButton"
92                     android:textColor="?attr/textColorPrimary"
93                     android:minLines="1"
94                     android:maxLines="1"
95                     android:ellipsize="marquee" />
96             </LinearLayout>
97         </LinearLayout>
99         <LinearLayout
100             android:id="@+id/button_bar"
101             android:visibility="gone"
102             style="?attr/buttonBarStyle"
103             android:layout_width="match_parent"
104             android:layout_height="wrap_content"
105             android:layout_alwaysShow="true"
106             android:gravity="end|center_vertical"
107             android:orientation="horizontal"
108             android:layoutDirection="locale"
109             android:measureWithLargestChild="true"
110             android:paddingTop="8dp"
111             android:paddingBottom="8dp"
112             android:paddingStart="12dp"
113             android:paddingEnd="12dp"
114             android:background="@color/white"
115             android:elevation="8dp">
117             <Button
118                 android:id="@+id/button_once"
119                 android:layout_width="wrap_content"
120                 android:layout_gravity="start"
121                 android:maxLines="2"
122                 style="?attr/buttonBarNegativeButtonStyle"
123                 android:minHeight="@dimen/alert_dialog_button_bar_height"
124                 android:layout_height="wrap_content"
125                 android:enabled="false"
126                 android:text="@string/activity_resolver_use_once"
127                 android:onClick="onButtonClick" />
129             <Button
130                 android:id="@+id/button_always"
131                 android:layout_width="wrap_content"
132                 android:layout_gravity="end"
133                 android:maxLines="2"
134                 android:minHeight="@dimen/alert_dialog_button_bar_height"
135                 style="?attr/buttonBarPositiveButtonStyle"
136                 android:layout_height="wrap_content"
137                 android:enabled="false"
138                 android:text="@string/activity_resolver_use_always"
139                 android:onClick="onButtonClick" />
140         </LinearLayout>
142         <View
143             android:layout_width="match_parent"
144             android:layout_height="1dp"
145             android:background="?attr/dividerVertical" />
146     </LinearLayout>
148     <ListView
149         android:layout_width="match_parent"
150         android:layout_height="wrap_content"
151         android:id="@+id/resolver_list"
152         android:clipToPadding="false"
153         android:scrollbarStyle="outsideOverlay"
154         android:background="@color/white"
155         android:elevation="8dp"
156         android:nestedScrollingEnabled="true"
157         android:divider="@null" />
159 </com.android.internal.widget.ResolverDrawerLayout>