satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 1 | <?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 Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 27 | android:paddingEnd="6dip" |
| 28 | android:paddingStart="6dip" |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 29 | 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" |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 50 | android:focusable="false" |
| 51 | android:clickable="false" /> |
| 52 | <ImageView |
| 53 | android:id="@+id/item_icon" |
satok | 5113382 | 2011-01-25 15:01:48 +0900 | [diff] [blame] | 54 | android:layout_width="@android:dimen/app_icon_size" |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 55 | android:layout_height="wrap_content" |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 56 | android:scaleType="fitCenter" |
| 57 | android:contentDescription="@null" /> |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 58 | <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 Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 74 | android:layout_gravity="center_vertical|start" |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 75 | 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 Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 90 | android:layout_marginStart="5dip" |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 91 | android:layout_gravity="center_vertical" |
Fabrice Di Meglio | 02c40c2 | 2013-03-08 14:05:28 -0800 | [diff] [blame] | 92 | android:paddingEnd="10dip" |
| 93 | android:paddingStart="10dip" |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 94 | android:src="@drawable/ic_sysbar_quicksettings" |
| 95 | android:visibility="visible" |
| 96 | android:clickable="true" |
| 97 | android:focusable="true" |
Svetoslav Ganov | 6179ea3 | 2011-06-28 01:12:41 -0700 | [diff] [blame] | 98 | android:background="?android:attr/selectableItemBackground" |
| 99 | android:contentDescription="@string/accessibility_settings_button" /> |
satok | 82beadf | 2010-12-27 19:03:06 +0900 | [diff] [blame] | 100 | </LinearLayout> |
| 101 | <View |
| 102 | android:layout_width="match_parent" |
| 103 | android:layout_height="1dip" |
| 104 | android:background="@android:drawable/divider_horizontal_dark" /> |
Daniel Sandler | 4a066c5 | 2012-04-20 14:49:13 -0400 | [diff] [blame] | 105 | </LinearLayout> |