229 lines
7.5 KiB
XML
229 lines
7.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
/* //device/apps/Settings/assets/res/any/layout/wifi_screen.xml
|
|
**
|
|
** Copyright 2007, The Android Open Source Project
|
|
**
|
|
** Licensed under the Apache License, Version 2.0 (the "License");
|
|
** you may not use this file except in compliance with the License.
|
|
** You may obtain a copy of the License at
|
|
**
|
|
** http://www.apache.org/licenses/LICENSE-2.0
|
|
**
|
|
** Unless required by applicable law or agreed to in writing, software
|
|
** distributed under the License is distributed on an "AS IS" BASIS,
|
|
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
** See the License for the specific language governing permissions and
|
|
** limitations under the License.
|
|
*/
|
|
-->
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:paddingLeft="2dip"
|
|
android:paddingRight="2dip">
|
|
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:paddingLeft="6dip"
|
|
android:paddingRight="6dip"
|
|
android:paddingBottom="3dip"
|
|
android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
|
|
<TextView android:id="@+id/status"
|
|
android:textSize="13sp"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/wifi_screen_status_text" />
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingTop="0dip"
|
|
android:paddingBottom="0dip"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent">
|
|
|
|
<CheckBox android:id="@+id/dhcp"
|
|
android:textSize="13sp"
|
|
android:layout_width="100dip"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/wifi_screen_dhcp_text" />
|
|
|
|
<CheckBox android:id="@+id/manual"
|
|
android:textSize="13sp"
|
|
android:layout_width="100dip"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/wifi_screen_manual_text" />
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingTop="0dip"
|
|
android:paddingBottom="0dip"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent">
|
|
|
|
<TextView
|
|
android:textSize="13sp"
|
|
android:textStyle="bold"
|
|
android:paddingTop="6dip"
|
|
android:maxLines="1"
|
|
android:layout_width="60dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_wlan_id" />
|
|
|
|
<Spinner android:id="@+id/essid"
|
|
android:textSize="13sp"
|
|
android:maxLines="1"
|
|
android:layout_marginLeft="3dip"
|
|
android:layout_width="150dip"
|
|
android:layout_height="wrap_content">
|
|
<requestFocus/>
|
|
</Spinner>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingTop="0dip"
|
|
android:paddingBottom="0dip"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent">
|
|
|
|
<Button android:id="@+id/activate"
|
|
android:textSize="13sp"
|
|
android:layout_marginTop="2dip"
|
|
android:layout_width="100dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_screen_activate_text" />
|
|
|
|
<Button android:id="@+id/test"
|
|
android:textSize="13sp"
|
|
android:layout_marginTop="2dip"
|
|
android:layout_width="100dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_screen_test_text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:id="@+id/manualconfig"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingBottom="3dip"
|
|
android:layout_width="fill_parent" android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingTop="0dip"
|
|
android:paddingBottom="0dip"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent">
|
|
|
|
<TextView
|
|
android:textSize="13sp"
|
|
android:textStyle="bold"
|
|
android:paddingTop="6dip"
|
|
android:maxLines="1"
|
|
android:layout_width="60dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_host_ip" />
|
|
|
|
<EditText android:id="@+id/ip"
|
|
android:textSize="13sp"
|
|
android:maxLines="1"
|
|
android:layout_marginLeft="3dip"
|
|
android:autoText="false"
|
|
android:capitalize="none"
|
|
android:layout_width="150dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_screen_ip_text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingTop="0dip"
|
|
android:paddingBottom="0dip"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent">
|
|
|
|
<TextView
|
|
android:textSize="13sp"
|
|
android:textStyle="bold"
|
|
android:paddingTop="6dip"
|
|
android:maxLines="1"
|
|
android:layout_width="60dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_netmask_label" />
|
|
|
|
<EditText android:id="@+id/netmask"
|
|
android:textSize="13sp"
|
|
android:maxLines="1"
|
|
android:layout_marginLeft="3dip"
|
|
android:layout_width="150dip" android:layout_height="wrap_content"
|
|
android:autoText="false"
|
|
android:capitalize="none"
|
|
android:text="@string/wifi_screen_netmask_text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingTop="0dip"
|
|
android:paddingBottom="0dip"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent">
|
|
|
|
<TextView
|
|
android:textSize="13sp"
|
|
android:textStyle="bold"
|
|
android:paddingTop="6dip"
|
|
android:maxLines="1"
|
|
android:layout_width="60dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_gateway_label" />
|
|
|
|
<EditText android:id="@+id/gateway"
|
|
android:textSize="13sp"
|
|
android:maxLines="1"
|
|
android:layout_marginLeft="3dip"
|
|
android:layout_width="150dip" android:layout_height="wrap_content"
|
|
android:autoText="false"
|
|
android:capitalize="none"
|
|
android:text="@string/wifi_screen_gateway_text" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="3dip"
|
|
android:paddingRight="3dip"
|
|
android:paddingTop="0dip"
|
|
android:paddingBottom="0dip"
|
|
android:layout_height="wrap_content" android:layout_width="fill_parent">
|
|
|
|
<TextView
|
|
android:textSize="13sp"
|
|
android:textStyle="bold"
|
|
android:paddingTop="6dip"
|
|
android:maxLines="1"
|
|
android:layout_width="60dip" android:layout_height="wrap_content"
|
|
android:text="@string/wifi_dns_label" />
|
|
|
|
<EditText android:id="@+id/dns"
|
|
android:textSize="13sp"
|
|
android:maxLines="1"
|
|
android:layout_marginLeft="3dip"
|
|
android:layout_width="150dip" android:layout_height="wrap_content"
|
|
android:autoText="false"
|
|
android:capitalize="none"
|
|
android:text="@string/wifi_screen_dns_text" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
</FrameLayout>
|