1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2009 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 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 22 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 23 android:minHeight="?android:attr/listPreferredItemHeight" 24 android:focusable="false" 25 android:gravity="center_vertical"> 26 27 <RelativeLayout 28 android:id="@+id/text_layout" 29 android:layout_width="0dip" 30 android:layout_height="match_parent" 31 android:gravity="center_vertical" 32 android:layout_weight="1" 33 android:focusable="true" 34 android:clickable="true" 35 android:background="?android:attr/selectableItemBackground"> 36 37 <TextView 38 android:id="@android:id/title" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:focusable="false" 42 android:singleLine="true" 43 android:textAppearance="?android:attr/textAppearanceListItem" /> 44 45 <TextView 46 android:id="@android:id/summary" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:layout_below="@android:id/title" 50 android:layout_alignStart="@android:id/title" 51 android:textAppearance="?android:attr/textAppearanceListItemSecondary" 52 android:textColor="?android:attr/textColorSecondary" 53 android:focusable="false" 54 android:maxLines="2" /> 55 56 </RelativeLayout> 57 58 <RadioButton 59 android:id="@+id/apn_radiobutton" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:layout_marginStart="8dip" 63 android:layout_marginEnd="8dip" 64 android:layout_gravity="center_vertical" 65 android:focusable="true" 66 android:clickable="true" /> 67 68</LinearLayout> 69