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