Repository navigation
Expand file tree
/
Copy pathactivity_main.xml
More file actions
201 lines (179 loc) · 8.15 KB
/
Copy pathactivity_main.xml
File metadata and controls
201 lines (179 loc) · 8.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mainView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusableInTouchMode="true"
android:orientation="vertical"
android:padding="10dp">
<com.omarshehe.forminputkotlin.FormInputSpinner
android:id="@+id/gender"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_array="@array/array_gender"
app:form_hint="Select gender"
app:form_label="Gender"
app:form_showLabel="false"
/>
<com.omarshehe.forminputkotlin.FormInputAutoComplete
android:id="@+id/country"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_array="@array/array_country"
app:form_height="@dimen/formInputInput_box_height"
app:form_hint="Your country"
app:form_inputType="text"
app:form_label="Country" />
<com.omarshehe.forminputkotlin.FormInputText
android:id="@+id/txtUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Your portfolio"
app:form_inputType="url"
app:form_label="Portfolio" />
<com.omarshehe.forminputkotlin.FormInputText
android:id="@+id/fullName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Your full name"
app:form_inputType="text"
app:form_label="Full Name" />
<com.omarshehe.forminputkotlin.FormInputSpinnerInputBox
android:id="@+id/price"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_array="@array/array_currency"
app:form_hint="Enter Price"
app:form_inputType="number"
app:form_label="Price" />
<com.omarshehe.forminputkotlin.FormInputText
android:id="@+id/phoneNumber"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Your phone number"
app:form_inputType="phoneNumber"
app:form_isMandatory="false"
app:form_label="Phone Number" />
<com.omarshehe.forminputkotlin.FormInputText
android:id="@+id/ID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Your ID number"
app:form_inputType="number"
app:form_isMandatory="false"
app:form_label="ID Number" />
<com.omarshehe.forminputkotlin.FormInputMultiline
android:id="@+id/about"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_height="130dp"
app:form_hint="About you"
app:form_label="About you"
app:form_maxLength="500" />
<com.omarshehe.forminputkotlin.FormInputText
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Your email address"
app:form_inputType="email"
app:form_label="Email" />
<com.omarshehe.forminputkotlin.FormInputText
android:id="@+id/confirmEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:inputType="textAutoCorrect"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Confirm email address"
app:form_inputType="email"
app:form_label="Confirm email" />
<com.omarshehe.forminputkotlin.FormInputPassword
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Your password"
app:form_label="Password"
app:form_showPassStrength="true"
app:form_showLabel="false"/>
<com.omarshehe.forminputkotlin.FormInputPassword
android:id="@+id/confirmPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_hint="Confirm your password"
app:form_label="Confirm Password"
app:form_showPassStrength="false" />
<com.omarshehe.forminputkotlin.FormInputPin
android:id="@+id/pin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_hint="0"
app:form_label="Pin"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color" />
<com.omarshehe.forminputkotlin.FormInputPin
android:id="@+id/confirmPin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:form_textColor="@color/input_text_color"
app:form_textColorLabel="@color/input_text_color"
app:form_label="Conform Pin"
app:form_hint="0"
app:form_inputType="number"/>
<com.omarshehe.forminputkotlin.FormInputButton
android:id="@+id/btnSubmit"
android:layout_width="wrap_content"
android:layout_height="55dp"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:text="@string/Submit"
android:textAllCaps="false"
android:textColor="@color/white"
app:backgroundTint="@color/colorPrimary"
app:cornerRadius="35dp"
app:form_progressColor="@color/colorAccent"
app:form_showProgress="true"
app:form_valueOnLoad="Please, wait.." />
</LinearLayout>
</ScrollView>