1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** Copyright 2012, 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 <view 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 class="com.android.settings.wifi.WifiSettings$ProportionalOuterFrame" 22 android:layout_height="match_parent" 23 android:layout_width="match_parent"> 24 25 <RelativeLayout 26 android:id="@+id/title_area" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:layout_alignParentTop="true" 30 android:gravity="bottom"> 31 32 <LinearLayout 33 android:id="@+id/title_bar" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:layout_alignBottom="@id/title" 37 android:gravity="bottom" 38 android:orientation="horizontal"> 39 <TextView 40 android:id="@+id/title" 41 android:layout_width="0dip" 42 android:layout_height="wrap_content" 43 android:layout_weight="1.0" 44 style="@style/SetupTitle" 45 android:text="@string/wifi_setup_wizard_title" 46 android:gravity="bottom" /> 47 48 <ImageButton 49 android:id="@+id/more" 50 android:layout_width="@dimen/setup_button_size" 51 android:layout_height="@dimen/setup_button_size" 52 android:layout_marginStart="8dip" 53 android:layout_marginEnd="8dip" 54 android:layout_marginBottom="8dip" 55 android:src="@*android:drawable/ic_menu_moreoverflow_holo_dark" 56 android:background="?android:attr/actionBarItemBackground" 57 android:contentDescription="@string/wifi_menu_more_options" /> 58 59 </LinearLayout> 60 61 <!-- Divider --> 62 <View 63 android:id="@+id/top_divider" 64 style="@style/TopDivider" 65 android:layout_below="@id/title_bar" /> 66 67 </RelativeLayout> 68 69 <LinearLayout 70 xmlns:android="http://schemas.android.com/apk/res/android" 71 android:layout_width="match_parent" 72 android:layout_height="match_parent" 73 android:layout_below="@id/title_area" 74 android:background="@android:color/transparent" 75 android:orientation="vertical" > 76 77 <TextView 78 android:id="@+id/wifi_required_info" 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:layout_marginBottom="6dip" 82 android:textAppearance="?android:attr/textAppearanceMedium" 83 android:text="@string/wifi_required_info_text" 84 android:visibility="gone" /> 85 86 <ListView 87 android:id="@android:id/list" 88 android:layout_width="match_parent" 89 android:layout_height="0px" 90 android:layout_weight="1" 91 android:cacheColorHint="@android:color/transparent" 92 android:clipToPadding="false" 93 android:drawSelectorOnTop="false" 94 android:paddingTop="0dip" 95 android:scrollbarAlwaysDrawVerticalTrack="true" /> 96 97 <TextView 98 android:id="@android:id/empty" 99 android:layout_width="match_parent" 100 android:layout_height="0px" 101 android:layout_weight="1" 102 android:gravity="center" 103 android:visibility="gone" /> 104 105 <ImageView 106 android:id="@+id/divider" 107 android:layout_width="match_parent" 108 android:layout_height="wrap_content" 109 android:layout_marginTop="@dimen/setup_item_margin" 110 android:background="@*android:drawable/list_divider_holo_dark" /> 111 112 <LinearLayout 113 android:id="@+id/other_network" 114 android:layout_width="match_parent" 115 android:layout_height="wrap_content" 116 android:layout_marginBottom="@dimen/setup_item_margin" 117 android:background="?android:attr/selectableItemBackground" 118 android:gravity="center_vertical" 119 android:minHeight="?android:attr/listPreferredItemHeight" 120 android:paddingEnd="?android:attr/scrollbarSize" > 121 122 <ImageView 123 android:id="@+id/add_icon" 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:layout_gravity="center" 127 android:src="@drawable/ic_menu_add" /> 128 129 <TextView 130 android:id="@+id/other" 131 android:layout_width="wrap_content" 132 android:layout_height="wrap_content" 133 android:layout_marginBottom="6dip" 134 android:layout_marginStart="15dip" 135 android:layout_marginEnd="6dip" 136 android:layout_marginTop="6dip" 137 android:layout_weight="1" 138 android:ellipsize="marquee" 139 android:fadingEdge="horizontal" 140 android:singleLine="true" 141 android:textAppearance="?android:attr/textAppearanceMedium" 142 android:text="@string/wifi_other_network" /> 143 144 </LinearLayout> 145 146 <RelativeLayout 147 android:id="@+id/button_bar" 148 android:layout_width="match_parent" 149 android:layout_height="wrap_content" 150 android:layout_weight="0" 151 android:visibility="gone" > 152 153 <Button 154 android:id="@+id/back_button" 155 android:layout_width="150dip" 156 android:layout_height="wrap_content" 157 android:layout_alignParentStart="true" 158 android:layout_margin="5dip" 159 android:text="@string/wifi_setup_back" /> 160 161 <Button 162 android:id="@+id/custom_button" 163 android:layout_width="150dip" 164 android:layout_height="wrap_content" 165 android:layout_alignParentEnd="true" 166 android:layout_margin="5dip" 167 android:text="@string/wifi_setup_skip" /> 168 169 <LinearLayout 170 android:layout_width="wrap_content" 171 android:layout_height="wrap_content" 172 android:layout_alignParentEnd="true" 173 android:orientation="horizontal" > 174 175 <Button 176 android:id="@+id/skip_button" 177 android:layout_width="150dip" 178 android:layout_height="wrap_content" 179 android:layout_margin="5dip" 180 android:text="@string/wifi_setup_skip" 181 android:visibility="gone" /> 182 183 <Button 184 android:id="@+id/next_button" 185 android:layout_width="150dip" 186 android:layout_height="wrap_content" 187 android:layout_margin="5dip" 188 android:text="@string/wifi_setup_next" 189 android:visibility="gone" /> 190 </LinearLayout> 191 </RelativeLayout> 192 </LinearLayout> 193 </view> 194