blob: a32f393a9d436b5efe1b5daf4a5b9af87add54a8 [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"
Chris Banes16fb73e2015-02-16 18:24:06 +000022 android:paddingStart="@dimen/lb_details_overview_margin_start"
23 android:paddingEnd="@dimen/lb_details_overview_margin_end"
Ying Wang3fbe0d42014-07-14 17:26:42 -070024 android:paddingBottom="@dimen/lb_details_overview_margin_bottom"
Sandeep Siddharthafbcf1022014-09-16 13:57:56 -070025 android:clipToPadding="false"
Qiwen Zhao1cc41882015-08-12 09:31:56 -070026 android:focusable="true"
27 android:focusableInTouchMode="true"
28 android:descendantFocusability="afterDescendants"
Ying Wang3fbe0d42014-07-14 17:26:42 -070029 >
30
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070031 <!-- 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
Ying Wang3fbe0d42014-07-14 17:26:42 -070040 <!-- Background is applied to this inner layout -->
41 <LinearLayout
42 android:id="@+id/details_overview"
43 android:layout_width="match_parent"
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070044 android:layout_height="match_parent"
Ying Wang3fbe0d42014-07-14 17:26:42 -070045 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
Sandeep Siddharthafbcf1022014-09-16 13:57:56 -070057 android:id="@+id/details_overview_right_panel"
Ying Wang3fbe0d42014-07-14 17:26:42 -070058 android:layout_width="match_parent"
59 android:layout_height="match_parent"
Sandeep Siddharthafbcf1022014-09-16 13:57:56 -070060 android:paddingBottom="@dimen/lb_details_overview_description_margin_bottom"
Ying Wang3fbe0d42014-07-14 17:26:42 -070061 android:orientation="vertical" >
62
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070063 <android.support.v17.leanback.widget.NonOverlappingFrameLayout
Ying Wang3fbe0d42014-07-14 17:26:42 -070064 android:id="@+id/details_overview_description"
Chris Banes16fb73e2015-02-16 18:24:06 +000065 android:layout_width="match_parent"
Ying Wang3fbe0d42014-07-14 17:26:42 -070066 android:layout_height="0dp"
67 android:layout_weight="1"
68 android:gravity="top"
Chris Banes16fb73e2015-02-16 18:24:06 +000069 android:layout_marginStart="@dimen/lb_details_overview_description_margin_start"
70 android:layout_marginEnd="@dimen/lb_details_overview_description_margin_end"
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070071 android:paddingTop="@dimen/lb_details_overview_description_margin_top"
72 android:clipToPadding="false"
73 android:clipChildren="false"
Ying Wang3fbe0d42014-07-14 17:26:42 -070074 />
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"
Chris Banes16fb73e2015-02-16 18:24:06 +000085 android:paddingStart="@dimen/lb_details_overview_description_margin_start"
86 android:paddingEnd="@dimen/lb_details_overview_description_margin_end"
Ying Wang3fbe0d42014-07-14 17:26:42 -070087 lb:horizontalMargin="@dimen/lb_details_overview_action_items_margin"
88 lb:rowHeight="@dimen/lb_details_overview_actions_height" />
89
90 </LinearLayout>
91 </LinearLayout>
Qiwen Zhao6b64ed42014-10-07 10:21:28 -070092 </FrameLayout>
Ying Wang3fbe0d42014-07-14 17:26:42 -070093</FrameLayout>