summaryrefslogtreecommitdiffstats
path: root/res/layout/write_wifi_config_to_nfc.xml
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2014-01-06 10:24:28 -0800
committerAndres Morales <anmorales@google.com>2014-04-10 10:25:50 -0700
commitef7a40a0d65a4d3e43d454273c6334448158e555 (patch)
tree8a09ef827ccc4bb3789fc2b30fd1bc96fa4a5634 /res/layout/write_wifi_config_to_nfc.xml
parentac6a3c3cb35e1b7ebd7300fa47f0f97a6d4d7e85 (diff)
downloadpackages_apps_Settings-ef7a40a0d65a4d3e43d454273c6334448158e555.zip
packages_apps_Settings-ef7a40a0d65a4d3e43d454273c6334448158e555.tar.gz
packages_apps_Settings-ef7a40a0d65a4d3e43d454273c6334448158e555.tar.bz2
Write wifi config to NFC tag
Configured networks expose the option to write config to an NFC tag. This tag can be then tapped to another device to configure the same network. Implemented according to WiFi Alliance WPS spec. Change-Id: I33a1be1610aab71cf1ab864418d494027370ebca
Diffstat (limited to 'res/layout/write_wifi_config_to_nfc.xml')
-rw-r--r--res/layout/write_wifi_config_to_nfc.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/res/layout/write_wifi_config_to_nfc.xml b/res/layout/write_wifi_config_to_nfc.xml
new file mode 100644
index 0000000..416c1ae
--- /dev/null
+++ b/res/layout/write_wifi_config_to_nfc.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/wifi_section">
+
+ <LinearLayout android:id="@+id/password_layout"
+ style="@style/wifi_item"
+ android:padding="8dip"
+ android:orientation="vertical" >
+
+ <TextView
+ android:id="@+id/password_label"
+ android:layout_gravity="fill"
+ style="@style/wifi_item_label"
+ android:text="@string/wifi_password" />
+
+ <EditText android:id="@+id/password"
+ style="@style/wifi_item_edit_content"
+ android:singleLine="true"
+ android:password="true" />
+
+ <TextView
+ style="@style/wifi_item_label" />
+
+ <CheckBox android:id="@+id/show_password"
+ style="@style/wifi_item_content"
+ android:textSize="14sp"
+ android:text="@string/wifi_show_password" />
+
+ </LinearLayout>
+
+
+ <ProgressBar
+ android:id="@+id/progress_bar"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical|center_horizontal"
+ android:padding="8dip"
+ android:visibility="gone"
+ style="@android:style/Widget.ProgressBar.Large" />
+
+</LinearLayout>