blob: 395dfd11320bada2f489f1b64fc0f8cb0964eb83 [file] [log] [blame]
Dharmesh Mokani66e1d302014-07-25 15:27:41 -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-->
Qiwen Zhao23399222014-08-18 13:29:14 -070017
18<!-- Note: clipChildren/clipToPadding false are needed to apply shadows to child
Qiwen Zhao9dca96a2015-01-07 14:32:49 -080019 views with no padding of their own. Also to allow for negative marge on description. -->
Qiwen Zhao23399222014-08-18 13:29:14 -070020
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070021<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 Zhao23399222014-08-18 13:29:14 -070025 android:clipChildren="false"
26 android:clipToPadding="false"
Qiwen Zhao680a2852014-11-25 15:15:27 -080027 android:paddingStart="@dimen/lb_playback_controls_margin_start"
28 android:paddingEnd="@dimen/lb_playback_controls_margin_end" >
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070029
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070030 <LinearLayout
31 android:id="@+id/controls_card"
32 android:layout_width="match_parent"
33 android:layout_height="@dimen/lb_playback_controls_card_height"
Sailesh Nepal80f8b3c2014-08-13 17:24:00 -070034 android:layout_marginBottom="@dimen/lb_playback_controls_margin_bottom"
Qiwen Zhao23399222014-08-18 13:29:14 -070035 android:clipChildren="false"
36 android:clipToPadding="false"
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070037 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 Zhao23399222014-08-18 13:29:14 -070049 android:clipChildren="false"
50 android:clipToPadding="false"
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070051 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 Zhao9dca96a2015-01-07 14:32:49 -080059 android:paddingTop="@dimen/lb_playback_description_margin_top"
60 android:clipToPadding="false"
61 android:clipChildren="false"
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070062 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 Zhao5ab314b2014-11-12 09:37:55 -080076 android:minHeight="@dimen/lb_control_button_height"
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070077 android:layout_marginEnd="@dimen/lb_playback_description_margin_end"
78 android:layout_marginStart="@dimen/lb_playback_description_margin_start" />
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070079 </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 Nepal80f8b3c2014-08-13 17:24:00 -070086 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 Mokani66e1d302014-07-25 15:27:41 -070092
93</LinearLayout>