media_route_list_item.xml revision 70e11e50eecfc8f1dfb76316d099e4331ebd28f7
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2012 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="?android:attr/listPreferredItemHeight"
20              android:background="?android:attr/activatedBackgroundIndicator"
21              android:gravity="center_vertical">
22
23    <ImageView android:layout_width="56dp"
24               android:layout_height="56dp"
25               android:scaleType="center"
26               android:id="@+id/icon"
27               android:visibility="gone" />
28
29    <LinearLayout android:layout_width="0dp"
30                  android:layout_height="match_parent"
31                  android:layout_weight="1"
32                  android:orientation="vertical"
33                  android:gravity="left|center_vertical"
34                  android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
35                  android:paddingRight="?android:attr/listPreferredItemPaddingRight">
36
37        <TextView android:id="@android:id/text1"
38                  android:layout_width="match_parent"
39                  android:layout_height="wrap_content"
40                  android:textAppearance="?android:attr/textAppearanceMedium" />
41
42        <TextView android:id="@android:id/text2"
43                  android:layout_width="match_parent"
44                  android:layout_height="wrap_content"
45                  android:textAppearance="?android:attr/textAppearanceSmall" />
46    </LinearLayout>
47
48    <!-- TODO Make this not glow when pressed from above, and give it a divider. -->
49    <ImageButton android:layout_width="56dp"
50                 android:layout_height="56dp"
51                 android:id="@+id/group_button"
52                 android:background="?android:attr/selectableItemBackground"
53                 android:scaleType="center"
54                 android:visibility="gone" />
55
56</LinearLayout>
57