blob: 8dbb630b465790890e125518337fe3b7274df780 [file] [log] [blame]
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2014 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:lb="http://schemas.android.com/apk/res-auto"
20 android:id="@+id/details_root"
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:paddingBottom="@dimen/lb_details_overview_margin_bottom"
24 android:clipToPadding="false"
Qiwen Zhao1cc41882015-08-12 09:31:56 -070025 android:focusable="true"
26 android:focusableInTouchMode="true"
27 android:descendantFocusability="afterDescendants"
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -070028 >
29
Qiwen Zhao9bb4b2e2015-05-19 14:54:37 -070030 <!-- Used for dimming foreground, round rect and background-->
31 <FrameLayout
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -070032 android:id="@+id/details_frame"
33 android:layout_width="match_parent"
34 android:layout_height="@dimen/lb_details_v2_card_height"
35 android:layout_marginTop="@dimen/lb_details_v2_blank_height"
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -070036 android:clipToPadding="false"
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -070037 android:foreground="#ffffff"
38 android:elevation="@dimen/lb_details_overview_z"
39 >
40
Qiwen Zhao9bb4b2e2015-05-19 14:54:37 -070041 <LinearLayout
42 android:layout_width="match_parent"
43 android:layout_height="match_parent"
44 android:orientation="vertical"
45 >
46
Kirill Grouchnikov8827c232015-06-29 11:55:11 -040047 <LinearLayout
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:id="@+id/details_overview_actions_background"
51 android:orientation="vertical" >
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -070052
Kirill Grouchnikov8827c232015-06-29 11:55:11 -040053 <android.support.v17.leanback.widget.HorizontalGridView
54 android:id="@+id/details_overview_actions"
55 android:layout_width="match_parent"
56 android:layout_height="@dimen/lb_details_v2_actions_height"
57 android:gravity="center"
58 android:clipToPadding="false"
59 android:focusable="true"
60 android:focusableInTouchMode="true"
61 android:paddingStart="@dimen/lb_details_v2_description_margin_start"
62 android:paddingEnd="@dimen/lb_details_v2_description_margin_end"
63 lb:horizontalMargin="@dimen/lb_details_overview_action_items_margin"
64 lb:rowHeight="@dimen/lb_details_v2_actions_height" />
65 </LinearLayout>
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -070066
Kirill Grouchnikov8827c232015-06-29 11:55:11 -040067 <android.support.v17.leanback.widget.NonOverlappingFrameLayout
68 android:id="@+id/details_overview_description"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:focusable="true"
72 android:focusableInTouchMode="true"
73 android:descendantFocusability="afterDescendants"
74 android:gravity="top"
75 android:paddingStart="@dimen/lb_details_v2_description_margin_start"
76 android:paddingEnd="@dimen/lb_details_v2_description_margin_end"
77 android:paddingTop="@dimen/lb_details_v2_description_margin_top"
78 android:clipToPadding="false"
79 android:clipChildren="false"
80 />
Qiwen Zhao9bb4b2e2015-05-19 14:54:37 -070081 </LinearLayout>
82 </FrameLayout>
Qiwen Zhaoc0f7a2e2015-05-06 08:16:21 -070083</FrameLayout>