Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 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: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 Siddhartha | fbcf102 | 2014-09-16 13:57:56 -0700 | [diff] [blame] | 25 | android:clipToPadding="false" |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 26 | > |
| 27 | |
Qiwen Zhao | 6b64ed4 | 2014-10-07 10:21:28 -0700 | [diff] [blame^] | 28 | <!-- 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 Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 37 | <!-- Background is applied to this inner layout --> |
| 38 | <LinearLayout |
| 39 | android:id="@+id/details_overview" |
| 40 | android:layout_width="match_parent" |
Qiwen Zhao | 6b64ed4 | 2014-10-07 10:21:28 -0700 | [diff] [blame^] | 41 | android:layout_height="match_parent" |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 42 | 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 Siddhartha | fbcf102 | 2014-09-16 13:57:56 -0700 | [diff] [blame] | 54 | android:id="@+id/details_overview_right_panel" |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 55 | android:layout_width="match_parent" |
| 56 | android:layout_height="match_parent" |
Sandeep Siddhartha | fbcf102 | 2014-09-16 13:57:56 -0700 | [diff] [blame] | 57 | android:paddingBottom="@dimen/lb_details_overview_description_margin_bottom" |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 58 | android:orientation="vertical" > |
| 59 | |
Qiwen Zhao | 6b64ed4 | 2014-10-07 10:21:28 -0700 | [diff] [blame^] | 60 | <android.support.v17.leanback.widget.NonOverlappingFrameLayout |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 61 | 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 Zhao | 6b64ed4 | 2014-10-07 10:21:28 -0700 | [diff] [blame^] | 68 | android:paddingTop="@dimen/lb_details_overview_description_margin_top" |
| 69 | android:clipToPadding="false" |
| 70 | android:clipChildren="false" |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 71 | /> |
| 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 Zhao | 6b64ed4 | 2014-10-07 10:21:28 -0700 | [diff] [blame^] | 89 | </FrameLayout> |
Ying Wang | 3fbe0d4 | 2014-07-14 17:26:42 -0700 | [diff] [blame] | 90 | </FrameLayout> |