blob: 12f6401e4a8cc16dc0d0673e198c0eb2d0857f82 [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"
18 android:id="@+id/widgets_cell_list_container"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
21 android:orientation="vertical"
Hyunyoung Song3f471442015-04-08 19:01:34 -070022 android:focusable="true"
Hyunyoung Song3f471442015-04-08 19:01:34 -070023 android:descendantFocusability="afterDescendants">
24
25 <!-- Section info -->
26 <LinearLayout
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:orientation="horizontal"
30 android:focusable="true"
Hyunyoung Song3f471442015-04-08 19:01:34 -070031 android:descendantFocusability="afterDescendants">
32 <ImageView
33 android:id="@+id/section_image"
Hyunyoung Song3f471442015-04-08 19:01:34 -070034 android:layout_height="@dimen/widget_section_height"
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070035 android:layout_width="@dimen/widget_section_icon_width"
36 android:paddingLeft="@dimen/widget_section_icon_horizontal_padding"
37 android:paddingRight="@dimen/widget_section_icon_horizontal_padding"
38 android:paddingTop="@dimen/widget_section_icon_vertical_padding"
39 android:paddingBottom="@dimen/widget_section_icon_vertical_padding"
Hyunyoung Song3f471442015-04-08 19:01:34 -070040 android:background="@color/widget_text_panel"
41 />
42 <TextView
43 android:id="@+id/section"
44 android:layout_width="match_parent"
45 android:layout_height="@dimen/widget_section_height"
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070046 android:paddingEnd="@dimen/widget_preview_label_horizontal_padding"
47 android:paddingRight="@dimen/widget_preview_label_horizontal_padding"
Hyunyoung Songa23dab92015-04-09 16:54:31 -070048 android:singleLine="true"
49 android:ellipsize="end"
Hyunyoung Song3f471442015-04-08 19:01:34 -070050 android:gravity="start|center_vertical"
51 android:textColor="@color/widgets_view_section_text_color"
52 android:background="@color/widget_text_panel"
53 android:textSize="20sp"
54 android:focusable="false" />
55 </LinearLayout>
56
57 <!-- Widget list -->
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070058 <RelativeLayout
Hyunyoung Song3f471442015-04-08 19:01:34 -070059 android:layout_width="match_parent"
60 android:layout_height="match_parent"
61 android:layout_gravity="end"
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070062 android:background="@color/widgets_cell_color"
Hyunyoung Song3f471442015-04-08 19:01:34 -070063 >
Hyunyoung Song3f471442015-04-08 19:01:34 -070064 <HorizontalScrollView
65 android:id="@+id/widgets_scroll_container"
66 android:layout_width="match_parent"
67 android:layout_height="@dimen/widget_cell_height"
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070068 android:layout_marginLeft="@dimen/widget_row_padding"
Hyunyoung Song3f471442015-04-08 19:01:34 -070069 android:scrollbars="none" >
70 <LinearLayout
71 android:id="@+id/widgets_cell_list"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
Hyunyoung Songf17a1c92015-04-27 17:01:32 -070074 android:orientation="horizontal"
75 android:background="@color/widget_text_panel"/>
Hyunyoung Song3f471442015-04-08 19:01:34 -070076 </HorizontalScrollView>
77 </RelativeLayout>
78</LinearLayout>