blob: ce337e8ec579b5cefc54ff284ea469e352bf4922 [file] [log] [blame]
Ying Wang1ee37af2014-07-14 17:26:42 -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:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:paddingLeft="@dimen/lb_details_overview_margin_left"
23 android:paddingRight="@dimen/lb_details_overview_margin_right"
24 android:paddingBottom="@dimen/lb_details_overview_margin_bottom"
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070025 android:clipToPadding="false"
Ying Wang1ee37af2014-07-14 17:26:42 -070026 >
27
28 <!-- Background is applied to this inner layout -->
29 <LinearLayout
30 android:id="@+id/details_overview"
31 android:layout_width="match_parent"
32 android:layout_height="@dimen/lb_details_overview_height_large"
33 android:orientation="horizontal"
34 >
35
36 <ImageView
37 android:id="@+id/details_overview_image"
38 android:layout_width="wrap_content"
39 android:layout_height="match_parent"
40 android:adjustViewBounds="true"
41 android:scaleType="fitStart"
42 />
43
44 <LinearLayout
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070045 android:id="@+id/details_overview_right_panel"
Ying Wang1ee37af2014-07-14 17:26:42 -070046 android:layout_width="match_parent"
47 android:layout_height="match_parent"
Yao Chen8269d932014-08-11 14:04:58 -070048 android:paddingBottom="@dimen/lb_details_overview_description_margin_bottom"
49 android:paddingTop="@dimen/lb_details_overview_description_margin_top"
Ying Wang1ee37af2014-07-14 17:26:42 -070050 android:orientation="vertical" >
51
52 <FrameLayout
53 android:id="@+id/details_overview_description"
54 android:layout_width="wrap_content"
55 android:layout_height="0dp"
56 android:layout_weight="1"
57 android:gravity="top"
58 android:layout_marginLeft="@dimen/lb_details_overview_description_margin_left"
59 android:layout_marginRight="@dimen/lb_details_overview_description_margin_right"
60 />
61
62 <android.support.v17.leanback.widget.HorizontalGridView
63 android:id="@+id/details_overview_actions"
64 android:layout_width="match_parent"
65 android:layout_height="wrap_content"
66 android:gravity="center"
67 android:clipChildren="false"
68 android:clipToPadding="false"
69 android:focusable="true"
70 android:focusableInTouchMode="true"
71 android:paddingLeft="@dimen/lb_details_overview_description_margin_left"
72 android:paddingRight="@dimen/lb_details_overview_description_margin_right"
73 lb:horizontalMargin="@dimen/lb_details_overview_action_items_margin"
74 lb:rowHeight="@dimen/lb_details_overview_actions_height" />
75
76 </LinearLayout>
77 </LinearLayout>
78
79</FrameLayout>