blob: 1e4e0fc7b3e390a2206d9e3df2ce32be2fb8ac8c [file] [log] [blame]
Ying Wang3fbe0d42014-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"
Sandeep Siddharthafbcf1022014-09-16 13:57:56 -070025 android:clipToPadding="false"
Ying Wang3fbe0d42014-07-14 17:26:42 -070026 >
27
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070028 <!-- Used for dimming -->
29 <FrameLayout
30 android:id="@+id/details_frame"
31 android:layout_width="match_parent"
32 android:layout_height="@dimen/lb_details_overview_height_large"
33 android:foreground="#ffffff"
34 android:elevation="@dimen/lb_details_overview_z"
35 >
36
Ying Wang3fbe0d42014-07-14 17:26:42 -070037 <!-- Background is applied to this inner layout -->
38 <LinearLayout
39 android:id="@+id/details_overview"
40 android:layout_width="match_parent"
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070041 android:layout_height="match_parent"
Ying Wang3fbe0d42014-07-14 17:26:42 -070042 android:orientation="horizontal"
43 >
44
45 <ImageView
46 android:id="@+id/details_overview_image"
47 android:layout_width="wrap_content"
48 android:layout_height="match_parent"
49 android:adjustViewBounds="true"
50 android:scaleType="fitStart"
51 />
52
53 <LinearLayout
Sandeep Siddharthafbcf1022014-09-16 13:57:56 -070054 android:id="@+id/details_overview_right_panel"
Ying Wang3fbe0d42014-07-14 17:26:42 -070055 android:layout_width="match_parent"
56 android:layout_height="match_parent"
Sandeep Siddharthafbcf1022014-09-16 13:57:56 -070057 android:paddingBottom="@dimen/lb_details_overview_description_margin_bottom"
Ying Wang3fbe0d42014-07-14 17:26:42 -070058 android:orientation="vertical" >
59
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070060 <android.support.v17.leanback.widget.NonOverlappingFrameLayout
Ying Wang3fbe0d42014-07-14 17:26:42 -070061 android:id="@+id/details_overview_description"
62 android:layout_width="wrap_content"
63 android:layout_height="0dp"
64 android:layout_weight="1"
65 android:gravity="top"
66 android:layout_marginLeft="@dimen/lb_details_overview_description_margin_left"
67 android:layout_marginRight="@dimen/lb_details_overview_description_margin_right"
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070068 android:paddingTop="@dimen/lb_details_overview_description_margin_top"
69 android:clipToPadding="false"
70 android:clipChildren="false"
Ying Wang3fbe0d42014-07-14 17:26:42 -070071 />
72
73 <android.support.v17.leanback.widget.HorizontalGridView
74 android:id="@+id/details_overview_actions"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:gravity="center"
78 android:clipChildren="false"
79 android:clipToPadding="false"
80 android:focusable="true"
81 android:focusableInTouchMode="true"
82 android:paddingLeft="@dimen/lb_details_overview_description_margin_left"
83 android:paddingRight="@dimen/lb_details_overview_description_margin_right"
84 lb:horizontalMargin="@dimen/lb_details_overview_action_items_margin"
85 lb:rowHeight="@dimen/lb_details_overview_actions_height" />
86
87 </LinearLayout>
88 </LinearLayout>
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070089 </FrameLayout>
Ying Wang3fbe0d42014-07-14 17:26:42 -070090</FrameLayout>