| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2013 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| <LinearLayout android:id="@+id/mr_title_bar" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:paddingLeft="24dp" |
| android:paddingRight="12dp" |
| android:orientation="horizontal" > |
| <TextView android:id="@+id/mr_name" |
| android:layout_width="0dp" |
| android:layout_height="72dp" |
| android:layout_weight="1" |
| android:gravity="center_vertical" |
| android:singleLine="true" |
| android:ellipsize="end" |
| android:textAppearance="?attr/mediaRouteControllerTitleTextStyle" /> |
| <ImageButton android:id="@+id/mr_close" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:layout_gravity="center_vertical" |
| android:contentDescription="@string/mr_controller_close_description" |
| android:src="?attr/mediaRouteCloseDrawable" |
| android:background="?attr/selectableItemBackgroundBorderless" /> |
| </LinearLayout> |
| <FrameLayout android:id="@+id/mr_custom_control" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:visibility="gone" /> |
| <FrameLayout android:id="@+id/mr_default_control" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content"> |
| <ImageView android:id="@+id/mr_art" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:adjustViewBounds="true" |
| android:scaleType="fitCenter" |
| android:background="?attr/colorPrimary" |
| android:layout_gravity="top" |
| android:visibility="gone" /> |
| <LinearLayout android:id="@+id/mr_media_control" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:layout_gravity="bottom"> |
| <LinearLayout android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:paddingTop="16dp" |
| android:paddingBottom="16dp" |
| android:background="?attr/colorPrimary"> |
| <include android:id="@+id/mr_playback_control" |
| layout="@layout/mr_playback_control" /> |
| <View android:id="@+id/mr_control_divider" |
| android:layout_width="fill_parent" |
| android:layout_height="8dp" |
| android:background="?attr/colorPrimary" |
| android:visibility="gone" /> |
| <include android:id="@+id/mr_volume_control" |
| layout="@layout/mr_volume_control" /> |
| </LinearLayout> |
| <ListView android:id="@+id/mr_volume_group_list" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:background="?attr/colorPrimaryDark" |
| android:visibility="gone" /> |
| </LinearLayout> |
| </FrameLayout> |
| <LinearLayout android:id="@+id/mr_buttons" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| <Button android:id="@+id/mr_button_disconnect" |
| android:layout_width="0dp" |
| android:layout_height="48dp" |
| android:gravity="center" |
| android:background="?attr/selectableItemBackgroundBorderless" |
| android:text="@string/mr_controller_disconnect" |
| android:textColor="?attr/colorPrimary" |
| android:textStyle="bold" |
| android:visibility="invisible" /> |
| <Button android:id="@+id/mr_button_stop" |
| android:layout_width="0dp" |
| android:layout_height="48dp" |
| android:gravity="center" |
| android:background="?attr/selectableItemBackgroundBorderless" |
| android:text="@string/mr_controller_stop" |
| android:textColor="?attr/colorPrimary" |
| android:textStyle="bold" /> |
| </LinearLayout> |
| </LinearLayout> |