blob: 2875b51c501636df0a4079958fb7ab5f494e9647 [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
19 views with no padding of their own. -->
20
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"
Dharmesh Mokani66e1d302014-07-25 15:27:41 -070027 android:paddingLeft="@dimen/lb_playback_controls_margin_left"
28 android:paddingRight="@dimen/lb_playback_controls_margin_right" >
29
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"
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 Mokani66e1d302014-07-25 15:27:41 -070076 </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 Nepal80f8b3c2014-08-13 17:24:00 -070083 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 Mokani66e1d302014-07-25 15:27:41 -070089
90</LinearLayout>