blob: 1a95ec1172f7d387eaeff398d53be2f9bd4cb003 [file] [log] [blame]
satok82beadf2010-12-27 19:03:06 +09001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4** Copyright 2011, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License");
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10** http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<LinearLayout
21 xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="match_parent"
23 android:layout_height="wrap_content"
24 android:minHeight="?android:attr/listPreferredItemHeight"
25 android:background="@drawable/status_bar_item_background"
26 android:orientation="vertical"
Fabrice Di Meglio02c40c22013-03-08 14:05:28 -080027 android:paddingEnd="6dip"
28 android:paddingStart="6dip"
satok82beadf2010-12-27 19:03:06 +090029 android:paddingTop="5dip"
30 android:paddingBottom="5dip"
31 android:gravity="center_vertical">
32 <LinearLayout
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:layout_weight="1"
36 android:gravity="center_vertical"
37 android:orientation="horizontal">
38 <LinearLayout
39 android:id="@+id/item_subtype"
40 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
42 android:layout_weight="1"
43 android:gravity="center_vertical"
44 android:orientation="horizontal"
45 android:background="?android:attr/selectableItemBackground">
46 <RadioButton
47 android:id="@+id/item_radio"
48 android:layout_width="30dip"
49 android:layout_height="wrap_content"
satok82beadf2010-12-27 19:03:06 +090050 android:focusable="false"
51 android:clickable="false" />
52 <ImageView
53 android:id="@+id/item_icon"
satok51133822011-01-25 15:01:48 +090054 android:layout_width="@android:dimen/app_icon_size"
satok82beadf2010-12-27 19:03:06 +090055 android:layout_height="wrap_content"
Svetoslav Ganov6179ea32011-06-28 01:12:41 -070056 android:scaleType="fitCenter"
57 android:contentDescription="@null" />
satok82beadf2010-12-27 19:03:06 +090058 <LinearLayout
59 android:orientation="vertical"
60 android:layout_width="0px"
61 android:layout_weight="1"
62 android:layout_height="wrap_content">
63 <TextView
64 android:id="@+id/item_title"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:textAppearance="?android:attr/textAppearanceMedium"
68 android:singleLine="true"
69 android:ellipsize="marquee"
70 android:layout_marginBottom="2dip" />
71 <TextView
72 android:id="@+id/item_subtitle"
73 android:layout_marginTop="-4dip"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070074 android:layout_gravity="center_vertical|start"
satok82beadf2010-12-27 19:03:06 +090075 android:layout_width="wrap_content"
76 android:layout_height="wrap_content"
77 android:textAppearance="?android:attr/textAppearanceSmall" />
78 </LinearLayout>
79 </LinearLayout>
80 <View
81 android:id="@+id/item_vertical_separator"
82 android:layout_width="2dip"
83 android:layout_height="match_parent"
84 android:layout_marginBottom="5dip"
85 android:background="@android:drawable/divider_horizontal_dark" />
86 <ImageView
87 android:id="@+id/item_settings_icon"
88 android:layout_width="wrap_content"
89 android:layout_height="match_parent"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070090 android:layout_marginStart="5dip"
satok82beadf2010-12-27 19:03:06 +090091 android:layout_gravity="center_vertical"
Fabrice Di Meglio02c40c22013-03-08 14:05:28 -080092 android:paddingEnd="10dip"
93 android:paddingStart="10dip"
satok82beadf2010-12-27 19:03:06 +090094 android:src="@drawable/ic_sysbar_quicksettings"
95 android:visibility="visible"
96 android:clickable="true"
97 android:focusable="true"
Svetoslav Ganov6179ea32011-06-28 01:12:41 -070098 android:background="?android:attr/selectableItemBackground"
99 android:contentDescription="@string/accessibility_settings_button" />
satok82beadf2010-12-27 19:03:06 +0900100 </LinearLayout>
101 <View
102 android:layout_width="match_parent"
103 android:layout_height="1dip"
104 android:background="@android:drawable/divider_horizontal_dark" />
Daniel Sandler4a066c52012-04-20 14:49:13 -0400105</LinearLayout>