blob: 8bc8be44a1bb066b1f81c2c10a94baf785d3dc64 [file] [log] [blame]
Hyunyoung Song3f471442015-04-08 19:01:34 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<LinearLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
Sunny Goyal0e08f162015-05-12 11:32:39 -070018 xmlns:launcher="http://schemas.android.com/apk/res-auto"
Hyunyoung Song3f471442015-04-08 19:01:34 -070019 android:id="@+id/widgets_cell_list_container"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:orientation="vertical"
Hyunyoung Song3f471442015-04-08 19:01:34 -070023 android:focusable="true"
Hyunyoung Song3f471442015-04-08 19:01:34 -070024 android:descendantFocusability="afterDescendants">
25
26 <!-- Section info -->
Sunny Goyal0e08f162015-05-12 11:32:39 -070027
28 <com.android.launcher3.BubbleTextView
29 android:id="@+id/section"
Hyunyoung Song3f471442015-04-08 19:01:34 -070030 android:layout_width="match_parent"
Sunny Goyal0e08f162015-05-12 11:32:39 -070031 android:layout_height="@dimen/widget_section_height"
32 android:background="@color/widget_text_panel"
33 android:drawablePadding="@dimen/widget_section_horizontal_padding"
34 android:ellipsize="end"
Hyunyoung Song3f471442015-04-08 19:01:34 -070035 android:focusable="true"
Sunny Goyal0e08f162015-05-12 11:32:39 -070036 android:gravity="start|center_vertical"
37 android:importantForAccessibility="no"
38 android:paddingBottom="@dimen/widget_section_vertical_padding"
39 android:paddingLeft="@dimen/widget_section_horizontal_padding"
40 android:paddingRight="@dimen/widget_section_horizontal_padding"
41 android:paddingTop="@dimen/widget_section_vertical_padding"
42 android:singleLine="true"
43 android:textColor="@color/widgets_view_section_text_color"
44 android:textSize="20sp"
45 launcher:customShadows="false"
46 launcher:deferShadowGeneration="true"
47 launcher:iconDisplay="widget_section"
48 launcher:iconSizeOverride="@dimen/widget_section_icon_size"
49 launcher:layoutHorizontal="true" />
Hyunyoung Song3f471442015-04-08 19:01:34 -070050
51 <!-- Widget list -->
Hyunyoung Song4b69f2c2015-05-11 14:55:07 -070052 <com.android.launcher3.widget.WidgetRowView
53 android:id="@+id/widget_row"
Hyunyoung Song3f471442015-04-08 19:01:34 -070054 android:layout_width="match_parent"
Hyunyoung Song4b69f2c2015-05-11 14:55:07 -070055 android:layout_height="@dimen/widget_cell_height"
Hyunyoung Song3f471442015-04-08 19:01:34 -070056 android:layout_gravity="end"
Hyunyoung Song4b69f2c2015-05-11 14:55:07 -070057 android:layout_marginLeft="@dimen/widget_row_padding"
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070058 android:background="@color/widgets_cell_color"
Hyunyoung Song3f471442015-04-08 19:01:34 -070059 >
Hyunyoung Song3f471442015-04-08 19:01:34 -070060 <HorizontalScrollView
61 android:id="@+id/widgets_scroll_container"
62 android:layout_width="match_parent"
Hyunyoung Song4b69f2c2015-05-11 14:55:07 -070063 android:layout_height="match_parent"
Hyunyoung Song3f471442015-04-08 19:01:34 -070064 android:scrollbars="none" >
65 <LinearLayout
66 android:id="@+id/widgets_cell_list"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070069 android:orientation="horizontal"
70 android:background="@color/widget_text_panel"/>
Hyunyoung Song3f471442015-04-08 19:01:34 -070071 </HorizontalScrollView>
Hyunyoung Song4b69f2c2015-05-11 14:55:07 -070072 </com.android.launcher3.widget.WidgetRowView>
Hyunyoung Song3f471442015-04-08 19:01:34 -070073</LinearLayout>