blob: 3b12b24c1ffa4d42d0f9659dd51efd4866d2a89d [file] [log] [blame]
Qiwen Zhao0d3d24a2014-12-02 09:39:35 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="match_parent"
19 android:layout_height="wrap_content"
20 android:orientation="vertical">
21 <LinearLayout android:id="@+id/title_bar"
22 android:layout_width="match_parent"
23 android:layout_height="wrap_content"
24 android:orientation="horizontal" >
25 <TextView android:id="@+id/route_name"
26 android:layout_width="0dp"
27 android:layout_height="72dp"
28 android:layout_weight="1"
29 android:layout_marginLeft="24dip"
30 android:layout_marginRight="24dip"
31 android:gravity="center_vertical"
32 android:singleLine="true"
33 android:ellipsize="end"
34 android:textAppearance="?android:attr/textAppearanceMedium"
35 android:textColor="?android:attr/textColorPrimary" />
36 <ImageButton android:id="@+id/settings"
37 android:layout_width="48dip"
38 android:layout_height="48dip"
39 android:padding="12dip"
40 android:layout_marginTop="12dip"
41 android:layout_marginBottom="12dip"
42 android:layout_marginRight="12dip"
43 android:contentDescription="@string/mr_media_route_controller_settings_description"
44 android:src="?attr/mediaRouteSettingsDrawable"
45 android:background="?attr/selectableItemBackgroundBorderless"
46 android:visibility="gone" />
47 </LinearLayout>
48 <FrameLayout android:id="@+id/media_route_control_frame"
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content" >
51 <RelativeLayout android:id="@+id/default_control_frame"
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content"
54 android:background="?attr/colorPrimary" >
55 <ImageView android:id="@+id/art"
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:maxHeight="@dimen/mr_media_route_controller_art_max_height"
59 android:adjustViewBounds="true"
60 android:scaleType="centerCrop"/>
61 <ImageButton android:id="@+id/play_pause"
62 android:layout_width="48dip"
63 android:layout_height="48dip"
64 android:padding="12dip"
65 android:layout_marginTop="8dip"
66 android:layout_marginBottom="8dip"
67 android:layout_alignParentRight="true"
68 android:layout_below="@id/art"
69 android:contentDescription="@string/mr_media_route_controller_play"
70 android:background="?attr/selectableItemBackgroundBorderless"/>
71 <LinearLayout android:id="@+id/text_wrapper"
72 android:orientation="vertical"
73 android:layout_height="wrap_content"
74 android:layout_width="wrap_content"
75 android:minHeight="64dip"
76 android:layout_marginLeft="24dip"
77 android:gravity="center_vertical"
78 android:layout_toLeftOf="@id/play_pause"
79 android:layout_below="@id/art"
80 android:layout_alignParentLeft="true" >
81 <TextView android:id="@+id/title"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:textAppearance="?android:attr/textAppearanceSmall"
85 android:textColor="?android:attr/textColorPrimary"
86 android:textSize="16sp"
87 android:textStyle="bold"
88 android:singleLine="true" />
89 <TextView android:id="@+id/subtitle"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
92 android:textAppearance="?android:attr/textAppearanceSmall"
93 android:textColor="?android:attr/textColorPrimary"
94 android:textSize="14sp"
95 android:singleLine="true" />
96 </LinearLayout>
97 </RelativeLayout>
98 </FrameLayout>
99 <LinearLayout android:id="@+id/buttons"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:orientation="horizontal" >
103 <Button android:id="@+id/disconnect"
104 android:layout_width="0dp"
105 android:layout_height="48dp"
106 android:gravity="center"
107 android:layout_weight="1"
108 android:background="?attr/selectableItemBackgroundBorderless"
109 android:text="@string/mr_media_route_controller_disconnect"
110 android:visibility="gone" />
111 <Button android:id="@+id/stop"
112 android:layout_width="0dp"
113 android:layout_height="48dp"
114 android:gravity="center"
115 android:layout_weight="1"
116 android:textColor="?attr/colorAccent"
117 android:background="?attr/selectableItemBackgroundBorderless"
118 android:text="@string/mr_media_route_controller_stop" />
119 </LinearLayout>
120</LinearLayout>