1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!-- Copyright (C) 2017 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
+ <com .android.launcher3.widget.WidgetsBottomSheet
18
+ xmlns : android =" http://schemas.android.com/apk/res/android"
19
+ android : orientation =" vertical"
20
+ android : layout_width =" match_parent"
21
+ android : layout_height =" wrap_content"
22
+ android : paddingTop =" 28dp"
23
+ android : background =" @drawable/top_round_rect_primary"
24
+ android : elevation =" @dimen/deep_shortcuts_elevation"
25
+ android : layout_gravity =" bottom"
26
+ android : theme =" ?attr/widgetsTheme" >
27
+
28
+ <TextView
29
+ style =" @style/TextHeadline"
30
+ android : id =" @+id/title"
31
+ android : layout_width =" match_parent"
32
+ android : layout_height =" wrap_content"
33
+ android : gravity =" center_horizontal"
34
+ android : textColor =" ?android:attr/textColorPrimary"
35
+ android : textSize =" 24sp"
36
+ android : paddingLeft =" @dimen/bottom_sheet_title_padding"
37
+ android : paddingRight =" @dimen/bottom_sheet_title_padding" />
38
+
39
+ <TextView
40
+ android : layout_width =" match_parent"
41
+ android : layout_height =" wrap_content"
42
+ android : gravity =" center_horizontal"
43
+ android : paddingTop =" 4dp"
44
+ android : fontFamily =" sans-serif"
45
+ android : textColor =" ?android:attr/textColorTertiary"
46
+ android : textSize =" 14sp"
47
+ android : text =" @string/long_press_widget_to_add" />
48
+
49
+ <include layout =" @layout/widgets_scroll_container"
50
+ android : id =" @+id/widgets"
51
+ android : layout_width =" wrap_content"
52
+ android : layout_height =" wrap_content"
53
+ android : layout_marginTop =" 45dp"
54
+ android : layout_marginBottom =" 40dp" />
55
+
56
+ </com .android.launcher3.widget.WidgetsBottomSheet>
0 commit comments