blob: dd73e762872108b67ed7249030faf1baf2e8c2e5 [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"
Qiwen Zhao680a2852014-11-25 15:15:27 -080022 android:paddingStart="@dimen/lb_details_overview_margin_start"
23 android:paddingEnd="@dimen/lb_details_overview_margin_end"
Ying Wang1ee37af2014-07-14 17:26:42 -070024 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
Sailesh Nepal6aef7692014-09-25 12:13:04 -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 Wang1ee37af2014-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"
Sailesh Nepal6aef7692014-09-25 12:13:04 -070041 android:layout_height="match_parent"
Ying Wang1ee37af2014-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
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070054 android:id="@+id/details_overview_right_panel"
Ying Wang1ee37af2014-07-14 17:26:42 -070055 android:layout_width="match_parent"
56 android:layout_height="match_parent"
Yao Chen8269d932014-08-11 14:04:58 -070057 android:paddingBottom="@dimen/lb_details_overview_description_margin_bottom"
Ying Wang1ee37af2014-07-14 17:26:42 -070058 android:orientation="vertical" >
59
Qiwen Zhaodd1e8882014-09-17 08:32:09 -070060 <android.support.v17.leanback.widget.NonOverlappingFrameLayout
Ying Wang1ee37af2014-07-14 17:26:42 -070061 android:id="@+id/details_overview_description"
Qiwen Zhaob9690c72014-11-06 11:26:40 -080062 android:layout_width="match_parent"
Ying Wang1ee37af2014-07-14 17:26:42 -070063 android:layout_height="0dp"
64 android:layout_weight="1"
65 android:gravity="top"
Qiwen Zhao680a2852014-11-25 15:15:27 -080066 android:layout_marginStart="@dimen/lb_details_overview_description_margin_start"
67 android:layout_marginEnd="@dimen/lb_details_overview_description_margin_end"
Alan Newbergerc7769152014-10-24 11:08:49 -070068 android:paddingTop="@dimen/lb_details_overview_description_margin_top"
69 android:clipToPadding="false"
70 android:clipChildren="false"
Ying Wang1ee37af2014-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"
Qiwen Zhao680a2852014-11-25 15:15:27 -080082 android:paddingStart="@dimen/lb_details_overview_description_margin_start"
83 android:paddingEnd="@dimen/lb_details_overview_description_margin_end"
Ying Wang1ee37af2014-07-14 17:26:42 -070084 lb:horizontalMargin="@dimen/lb_details_overview_action_items_margin"
85 lb:rowHeight="@dimen/lb_details_overview_actions_height" />
86
87 </LinearLayout>
88 </LinearLayout>
Sailesh Nepal6aef7692014-09-25 12:13:04 -070089 </FrameLayout>
Ying Wang1ee37af2014-07-14 17:26:42 -070090</FrameLayout>