Russell Brenner | fc86669 | 2012-05-14 08:21:42 -0700 | [diff] [blame] | 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/button_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 |
Michael Kolb | 9d5a6eb | 2012-05-23 10:26:53 -0700 | [diff] [blame^] | 49 | android:id="@+id/more" |
Russell Brenner | fc86669 | 2012-05-14 08:21:42 -0700 | [diff] [blame] | 50 | android:layout_width="@dimen/setup_button_size" |
| 51 | android:layout_height="@dimen/setup_button_size" |
| 52 | android:layout_marginLeft="8dip" |
| 53 | android:layout_marginRight="8dip" |
| 54 | android:layout_marginBottom="8dip" |
Michael Kolb | 9d5a6eb | 2012-05-23 10:26:53 -0700 | [diff] [blame^] | 55 | android:src="@*android:drawable/ic_menu_moreoverflow_holo_dark" |
alanv | 0aa7c4f | 2012-05-21 17:55:19 -0700 | [diff] [blame] | 56 | android:background="?android:attr/actionBarItemBackground" |
| 57 | android:contentDescription="@string/wifi_menu_wps_pbc" /> |
Russell Brenner | fc86669 | 2012-05-14 08:21:42 -0700 | [diff] [blame] | 58 | |
| 59 | </LinearLayout> |
| 60 | |
| 61 | <!-- Divider --> |
| 62 | <View |
| 63 | android:id="@+id/top_divider" |
| 64 | style="@style/TopDivider" |
| 65 | android:layout_below="@id/button_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 | <ListView |
| 78 | android:id="@android:id/list" |
| 79 | android:layout_width="match_parent" |
| 80 | android:layout_height="0px" |
| 81 | android:layout_weight="1" |
| 82 | android:cacheColorHint="@android:color/transparent" |
| 83 | android:clipToPadding="false" |
| 84 | android:drawSelectorOnTop="false" |
| 85 | android:paddingTop="0dip" |
| 86 | android:scrollbarAlwaysDrawVerticalTrack="true" /> |
| 87 | |
| 88 | <TextView |
| 89 | android:id="@android:id/empty" |
| 90 | android:layout_width="match_parent" |
| 91 | android:layout_height="match_parent" |
| 92 | android:gravity="center" |
| 93 | android:visibility="gone" /> |
| 94 | |
Michael Kolb | 9d5a6eb | 2012-05-23 10:26:53 -0700 | [diff] [blame^] | 95 | <ImageView |
| 96 | android:id="@+id/divider" |
| 97 | android:layout_width="match_parent" |
| 98 | android:layout_height="wrap_content" |
| 99 | android:layout_marginTop="@dimen/setup_item_margin" |
| 100 | android:background="@*android:drawable/list_divider_holo_dark" /> |
| 101 | |
| 102 | <LinearLayout |
| 103 | android:id="@+id/other_network" |
| 104 | android:layout_width="match_parent" |
| 105 | android:layout_height="wrap_content" |
| 106 | android:layout_marginBottom="@dimen/setup_item_margin" |
| 107 | android:background="?android:attr/selectableItemBackground" |
| 108 | android:gravity="center_vertical" |
| 109 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 110 | android:paddingRight="?android:attr/scrollbarSize" > |
| 111 | |
| 112 | <ImageView |
| 113 | android:id="@+id/add_icon" |
| 114 | android:layout_width="wrap_content" |
| 115 | android:layout_height="wrap_content" |
| 116 | android:layout_gravity="center" |
| 117 | android:src="@drawable/ic_menu_add" /> |
| 118 | |
| 119 | <TextView |
| 120 | android:id="@+id/other" |
| 121 | android:layout_width="wrap_content" |
| 122 | android:layout_height="wrap_content" |
| 123 | android:layout_marginBottom="6dip" |
| 124 | android:layout_marginLeft="15dip" |
| 125 | android:layout_marginRight="6dip" |
| 126 | android:layout_marginTop="6dip" |
| 127 | android:layout_weight="1" |
| 128 | android:ellipsize="marquee" |
| 129 | android:fadingEdge="horizontal" |
| 130 | android:singleLine="true" |
| 131 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 132 | android:text="@string/wifi_other_network" /> |
| 133 | |
| 134 | </LinearLayout> |
| 135 | |
Russell Brenner | fc86669 | 2012-05-14 08:21:42 -0700 | [diff] [blame] | 136 | <RelativeLayout |
| 137 | android:id="@+id/button_bar" |
| 138 | android:layout_width="match_parent" |
| 139 | android:layout_height="wrap_content" |
| 140 | android:layout_weight="0" |
| 141 | android:visibility="gone" > |
| 142 | |
| 143 | <Button |
| 144 | android:id="@+id/back_button" |
| 145 | android:layout_width="150dip" |
| 146 | android:layout_height="wrap_content" |
| 147 | android:layout_alignParentLeft="true" |
| 148 | android:layout_margin="5dip" |
| 149 | android:text="@string/wifi_setup_back" /> |
| 150 | |
| 151 | <LinearLayout |
| 152 | android:layout_width="wrap_content" |
| 153 | android:layout_height="wrap_content" |
| 154 | android:layout_alignParentRight="true" |
| 155 | android:orientation="horizontal" > |
| 156 | |
| 157 | <Button |
| 158 | android:id="@+id/skip_button" |
| 159 | android:layout_width="150dip" |
| 160 | android:layout_height="wrap_content" |
| 161 | android:layout_margin="5dip" |
| 162 | android:text="@string/wifi_setup_skip" |
| 163 | android:visibility="gone" /> |
| 164 | |
| 165 | <Button |
| 166 | android:id="@+id/next_button" |
| 167 | android:layout_width="150dip" |
| 168 | android:layout_height="wrap_content" |
| 169 | android:layout_margin="5dip" |
| 170 | android:text="@string/wifi_setup_next" /> |
| 171 | </LinearLayout> |
| 172 | </RelativeLayout> |
| 173 | </LinearLayout> |
| 174 | </view> |