1 | <?xml version="1.0" encoding="utf-8"?> |
---|
2 | <!-- Copyright (C) 2015 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="fill_parent" |
---|
19 | android:layout_height="wrap_content"> |
---|
20 | <LinearLayout android:id="@+id/volume_item_container" |
---|
21 | android:layout_width="fill_parent" |
---|
22 | android:layout_height="@dimen/mr_controller_volume_group_list_item_height" |
---|
23 | android:paddingLeft="24dp" |
---|
24 | android:paddingRight="60dp" |
---|
25 | android:paddingBottom="8dp" |
---|
26 | android:orientation="vertical" > |
---|
27 | <TextView android:id="@+id/mr_name" |
---|
28 | android:layout_width="wrap_content" |
---|
29 | android:layout_height="wrap_content" |
---|
30 | android:textAppearance="?attr/mediaRouteControllerSecondaryTextStyle" |
---|
31 | android:singleLine="true" /> |
---|
32 | <LinearLayout android:layout_width="fill_parent" |
---|
33 | android:layout_height="wrap_content" |
---|
34 | android:orientation="horizontal" |
---|
35 | android:gravity="center_vertical"> |
---|
36 | <ImageView android:id="@+id/mr_volume_item_icon" |
---|
37 | android:layout_width="@dimen/mr_controller_volume_group_list_item_icon_size" |
---|
38 | android:layout_height="@dimen/mr_controller_volume_group_list_item_icon_size" |
---|
39 | android:layout_marginTop="8dp" |
---|
40 | android:layout_marginBottom="8dp" |
---|
41 | android:scaleType="fitCenter" |
---|
42 | android:src="?attr/mediaRouteAudioTrackDrawable" /> |
---|
43 | <android.support.v7.app.MediaRouteVolumeSlider |
---|
44 | android:id="@+id/mr_volume_slider" |
---|
45 | android:layout_width="fill_parent" |
---|
46 | android:layout_height="40dp" |
---|
47 | android:minHeight="40dp" |
---|
48 | android:maxHeight="40dp" /> |
---|
49 | </LinearLayout> |
---|
50 | </LinearLayout> |
---|
51 | </LinearLayout> |
---|