close
The Wayback Machine - https://web.archive.org/web/20160417071448/https://developer.android.com/samples/NfcProvisioning/res/layout/fragment_nfc_provisioning.html
Show navigation Hide navigation
NfcProvisioning / res / layout /

fragment_nfc_provisioning.xml

1
<?xml version="1.0" encoding="utf-8"?>
2
<!--
3
Copyright 2015 The Android Open Source Project
4
 
5
Licensed under the Apache License, Version 2.0 (the "License");
6
you may not use this file except in compliance with the License.
7
You may obtain a copy of the License at
8
 
9
 http://www.apache.org/licenses/LICENSE-2.0
10
 
11
Unless required by applicable law or agreed to in writing, software
12
distributed under the License is distributed on an "AS IS" BASIS,
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
See the License for the specific language governing permissions and
15
limitations under the License.
16
-->
17
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18
            android:layout_width="match_parent"
19
            android:layout_height="match_parent">
20
 
21
    <LinearLayout
22
        android:layout_width="match_parent"
23
        android:layout_height="wrap_content"
24
        android:orientation="vertical"
25
        android:padding="@dimen/margin_small">
26
 
27
        <EditText
28
            android:id="@+id/package_name"
29
            android:layout_width="match_parent"
30
            android:layout_height="wrap_content"
31
            android:layout_margin="@dimen/margin_small"
32
            android:hint="@string/hint_package_name"
33
            android:inputType="textNoSuggestions"/>
34
 
35
        <EditText
36
            android:id="@+id/locale"
37
            android:layout_width="match_parent"
38
            android:layout_height="wrap_content"
39
            android:layout_margin="@dimen/margin_small"
40
            android:hint="@string/hint_locale"
41
            android:inputType="textNoSuggestions"/>
42
 
43
        <EditText
44
            android:id="@+id/timezone"
45
            android:layout_width="match_parent"
46
            android:layout_height="wrap_content"
47
            android:layout_margin="@dimen/margin_small"
48
            android:hint="@string/hint_timezone"
49
            android:inputType="textNoSuggestions"/>
50
 
51
        <EditText
52
            android:id="@+id/wifi_ssid"
53
            android:layout_width="match_parent"
54
            android:layout_height="wrap_content"
55
            android:layout_margin="@dimen/margin_small"
56
            android:hint="@string/hint_wifi_ssid"
57
            android:inputType="textNoSuggestions"/>
58
 
59
        <EditText
60
            android:id="@+id/wifi_security_type"
61
            android:layout_width="match_parent"
62
            android:layout_height="wrap_content"
63
            android:layout_margin="@dimen/margin_small"
64
            android:hint="@string/hint_wifi_security_type"
65
            android:inputType="textNoSuggestions"/>
66
 
67
        <EditText
68
            android:id="@+id/wifi_password"
69
            android:layout_width="match_parent"
70
            android:layout_height="wrap_content"
71
            android:layout_margin="@dimen/margin_small"
72
            android:hint="@string/hint_wifi_password"
73
            android:inputType="textPassword"/>
74
 
75
    </LinearLayout>
76
 
77
</ScrollView>