1<?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:paddingStart="@dimen/lb_details_overview_margin_start"
23    android:paddingEnd="@dimen/lb_details_overview_margin_end"
24    android:paddingBottom="@dimen/lb_details_overview_margin_bottom"
25    android:clipToPadding="false"
26    android:focusable="true"
27    android:focusableInTouchMode="true"
28    android:descendantFocusability="afterDescendants"
29    >
30
31    <!--  Used for dimming -->
32    <FrameLayout
33        android:id="@+id/details_frame"
34        android:layout_width="match_parent"
35        android:layout_height="@dimen/lb_details_overview_height_large"
36        android:foreground="#ffffff"
37        android:elevation="@dimen/lb_details_overview_z"
38        >
39
40    <!-- Background is applied to this inner layout -->
41    <LinearLayout
42        android:id="@+id/details_overview"
43        android:layout_width="match_parent"
44        android:layout_height="match_parent"
45        android:orientation="horizontal"
46         >
47
48        <ImageView
49            android:id="@+id/details_overview_image"
50            android:layout_width="wrap_content"
51            android:layout_height="match_parent"
52            android:adjustViewBounds="true"
53            android:scaleType="fitStart"
54            />
55
56        <LinearLayout
57            android:id="@+id/details_overview_right_panel"
58            android:layout_width="match_parent"
59            android:layout_height="match_parent"
60            android:paddingBottom="@dimen/lb_details_overview_description_margin_bottom"
61            android:orientation="vertical" >
62
63        <android.support.v17.leanback.widget.NonOverlappingFrameLayout
64            android:id="@+id/details_overview_description"
65            android:layout_width="match_parent"
66            android:layout_height="0dp"
67            android:layout_weight="1"
68            android:gravity="top"
69            android:layout_marginStart="@dimen/lb_details_overview_description_margin_start"
70            android:layout_marginEnd="@dimen/lb_details_overview_description_margin_end"
71            android:paddingTop="@dimen/lb_details_overview_description_margin_top"
72            android:clipToPadding="false"
73            android:clipChildren="false"
74            />
75
76        <android.support.v17.leanback.widget.HorizontalGridView
77            android:id="@+id/details_overview_actions"
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content"
80            android:gravity="center"
81            android:clipChildren="false"
82            android:clipToPadding="false"
83            android:focusable="true"
84            android:focusableInTouchMode="true"
85            android:paddingStart="@dimen/lb_details_overview_description_margin_start"
86            android:paddingEnd="@dimen/lb_details_overview_description_margin_end"
87            lb:horizontalMargin="@dimen/lb_details_overview_action_items_margin"
88            lb:rowHeight="@dimen/lb_details_overview_actions_height" />
89
90        </LinearLayout>
91    </LinearLayout>
92    </FrameLayout>
93</FrameLayout>
94