Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 1 | <?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 Goyal | 0e08f16 | 2015-05-12 11:32:39 -0700 | [diff] [blame^] | 18 | xmlns:launcher="http://schemas.android.com/apk/res-auto" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 19 | android:id="@+id/widgets_cell_list_container" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:orientation="vertical" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 23 | android:focusable="true" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 24 | android:descendantFocusability="afterDescendants"> |
| 25 | |
| 26 | <!-- Section info --> |
Sunny Goyal | 0e08f16 | 2015-05-12 11:32:39 -0700 | [diff] [blame^] | 27 | |
| 28 | <com.android.launcher3.BubbleTextView |
| 29 | android:id="@+id/section" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
Sunny Goyal | 0e08f16 | 2015-05-12 11:32:39 -0700 | [diff] [blame^] | 31 | 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 Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 35 | android:focusable="true" |
Sunny Goyal | 0e08f16 | 2015-05-12 11:32:39 -0700 | [diff] [blame^] | 36 | 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 Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 50 | |
| 51 | <!-- Widget list --> |
Hyunyoung Song | 4b69f2c | 2015-05-11 14:55:07 -0700 | [diff] [blame] | 52 | <com.android.launcher3.widget.WidgetRowView |
| 53 | android:id="@+id/widget_row" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 54 | android:layout_width="match_parent" |
Hyunyoung Song | 4b69f2c | 2015-05-11 14:55:07 -0700 | [diff] [blame] | 55 | android:layout_height="@dimen/widget_cell_height" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 56 | android:layout_gravity="end" |
Hyunyoung Song | 4b69f2c | 2015-05-11 14:55:07 -0700 | [diff] [blame] | 57 | android:layout_marginLeft="@dimen/widget_row_padding" |
Hyunyoung Song | f17a1c9 | 2015-04-27 17:01:32 -0700 | [diff] [blame] | 58 | android:background="@color/widgets_cell_color" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 59 | > |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 60 | <HorizontalScrollView |
| 61 | android:id="@+id/widgets_scroll_container" |
| 62 | android:layout_width="match_parent" |
Hyunyoung Song | 4b69f2c | 2015-05-11 14:55:07 -0700 | [diff] [blame] | 63 | android:layout_height="match_parent" |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 64 | 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 Song | f17a1c9 | 2015-04-27 17:01:32 -0700 | [diff] [blame] | 69 | android:orientation="horizontal" |
| 70 | android:background="@color/widget_text_panel"/> |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 71 | </HorizontalScrollView> |
Hyunyoung Song | 4b69f2c | 2015-05-11 14:55:07 -0700 | [diff] [blame] | 72 | </com.android.launcher3.widget.WidgetRowView> |
Hyunyoung Song | 3f47144 | 2015-04-08 19:01:34 -0700 | [diff] [blame] | 73 | </LinearLayout> |