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 |
| 19 | views with no padding of their own. --> |
| 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" |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 27 | android:paddingLeft="@dimen/lb_playback_controls_margin_left" |
| 28 | android:paddingRight="@dimen/lb_playback_controls_margin_right" > |
| 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" |
| 59 | android:layout_marginTop="@dimen/lb_playback_description_margin_top" |
| 60 | android:layout_weight="1" |
| 61 | android:gravity="top" /> |
| 62 | |
| 63 | <!-- Space here prevents room only for title and subtitle above --> |
| 64 | |
| 65 | <Space |
| 66 | android:id="@+id/spacer" |
| 67 | android:layout_width="match_parent" |
| 68 | android:layout_height="12dp" /> |
| 69 | |
| 70 | <FrameLayout |
| 71 | android:id="@+id/controls_dock" |
| 72 | android:layout_width="match_parent" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:layout_marginEnd="@dimen/lb_playback_description_margin_end" |
| 75 | android:layout_marginStart="@dimen/lb_playback_description_margin_start" /> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 76 | </LinearLayout> |
| 77 | </LinearLayout> |
| 78 | |
| 79 | <FrameLayout |
| 80 | android:id="@+id/secondary_controls_dock" |
| 81 | android:layout_width="wrap_content" |
| 82 | android:layout_height="wrap_content" |
Sailesh Nepal | 80f8b3c | 2014-08-13 17:24:00 -0700 | [diff] [blame] | 83 | android:layout_gravity="center_horizontal" /> |
| 84 | |
| 85 | <Space |
| 86 | android:id="@+id/bottom_spacer" |
| 87 | android:layout_width="match_parent" |
| 88 | android:layout_height="@dimen/lb_playback_controls_margin_bottom" /> |
Dharmesh Mokani | 66e1d30 | 2014-07-25 15:27:41 -0700 | [diff] [blame] | 89 | |
| 90 | </LinearLayout> |