Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -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 | --> |
Qiwen Zhao | 2339922 | 2014-08-18 13:29:14 -0700 | [diff] [blame] | 17 | |
| 18 | <!-- Note: clipChildren/clipToPadding false are needed to apply shadows to child |
Qiwen Zhao | 9dca96a | 2015-01-07 14:32:49 -0800 | [diff] [blame] | 19 | views with no padding of their own. Also to allow for negative marge on description. --> |
Qiwen Zhao | 2339922 | 2014-08-18 13:29:14 -0700 | [diff] [blame] | 20 | |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 21 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 22 | android:layout_width="match_parent" |
| 23 | android:layout_height="wrap_content" |
| 24 | android:orientation="vertical" |
Qiwen Zhao | 2339922 | 2014-08-18 13:29:14 -0700 | [diff] [blame] | 25 | android:clipChildren="false" |
| 26 | android:clipToPadding="false" |
Qiwen Zhao | 680a285 | 2014-11-25 15:15:27 -0800 | [diff] [blame] | 27 | android:paddingStart="@dimen/lb_playback_controls_margin_start" |
| 28 | android:paddingEnd="@dimen/lb_playback_controls_margin_end" > |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 29 | |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 30 | <LinearLayout |
| 31 | android:id="@+id/controls_card" |
| 32 | android:layout_width="match_parent" |
| 33 | android:layout_height="@dimen/lb_playback_controls_card_height" |
Sailesh Nepal | 80f8b3c | 2014-08-13 17:24:00 -0700 | [diff] [blame] | 34 | android:layout_marginBottom="@dimen/lb_playback_controls_margin_bottom" |
Qiwen Zhao | 2339922 | 2014-08-18 13:29:14 -0700 | [diff] [blame] | 35 | android:clipChildren="false" |
| 36 | android:clipToPadding="false" |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 37 | android:orientation="horizontal" > |
| 38 | |
| 39 | <ImageView |
| 40 | android:id="@+id/image" |
| 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="match_parent" |
| 43 | android:adjustViewBounds="true" |
| 44 | android:scaleType="fitStart" /> |
| 45 | |
| 46 | <LinearLayout |
| 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="match_parent" |
Qiwen Zhao | 2339922 | 2014-08-18 13:29:14 -0700 | [diff] [blame] | 49 | android:clipChildren="false" |
| 50 | android:clipToPadding="false" |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 51 | android:orientation="vertical" > |
| 52 | |
| 53 | <FrameLayout |
| 54 | android:id="@+id/description_dock" |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="0dp" |
| 57 | android:layout_marginEnd="@dimen/lb_playback_description_margin_end" |
| 58 | android:layout_marginStart="@dimen/lb_playback_description_margin_start" |
Qiwen Zhao | 9dca96a | 2015-01-07 14:32:49 -0800 | [diff] [blame] | 59 | android:paddingTop="@dimen/lb_playback_description_margin_top" |
| 60 | android:clipToPadding="false" |
| 61 | android:clipChildren="false" |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 62 | android:layout_weight="1" |
| 63 | android:gravity="top" /> |
| 64 | |
| 65 | <!-- Space here prevents room only for title and subtitle above --> |
| 66 | |
| 67 | <Space |
| 68 | android:id="@+id/spacer" |
| 69 | android:layout_width="match_parent" |
| 70 | android:layout_height="12dp" /> |
| 71 | |
| 72 | <FrameLayout |
| 73 | android:id="@+id/controls_dock" |
| 74 | android:layout_width="match_parent" |
| 75 | android:layout_height="wrap_content" |
Qiwen Zhao | 5ab314b | 2014-11-12 09:37:55 -0800 | [diff] [blame] | 76 | android:minHeight="@dimen/lb_control_button_height" |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 77 | android:layout_marginEnd="@dimen/lb_playback_description_margin_end" |
| 78 | android:layout_marginStart="@dimen/lb_playback_description_margin_start" /> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 79 | </LinearLayout> |
| 80 | </LinearLayout> |
| 81 | |
| 82 | <FrameLayout |
| 83 | android:id="@+id/secondary_controls_dock" |
| 84 | android:layout_width="wrap_content" |
| 85 | android:layout_height="wrap_content" |
Sailesh Nepal | 80f8b3c | 2014-08-13 17:24:00 -0700 | [diff] [blame] | 86 | android:layout_gravity="center_horizontal" /> |
| 87 | |
| 88 | <Space |
| 89 | android:id="@+id/bottom_spacer" |
| 90 | android:layout_width="match_parent" |
| 91 | android:layout_height="@dimen/lb_playback_controls_margin_bottom" /> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 92 | |
| 93 | </LinearLayout> |