|
@@ -46,7 +46,7 @@
|
46
|
46
|
android:textSize="@dimen/_32sdp" />
|
47
|
47
|
|
48
|
48
|
<LinearLayout
|
49
|
|
- android:id="@+id/layoutContent"
|
|
49
|
+ android:id="@+id/layoutBirthContent"
|
50
|
50
|
android:layout_width="match_parent"
|
51
|
51
|
android:layout_height="wrap_content"
|
52
|
52
|
android:orientation="vertical"
|
|
@@ -54,148 +54,230 @@
|
54
|
54
|
|
55
|
55
|
<LinearLayout
|
56
|
56
|
android:layout_width="match_parent"
|
57
|
|
- android:layout_height="@dimen/_36sdp"
|
58
|
|
- android:orientation="horizontal"
|
|
57
|
+ android:layout_height="60dp"
|
|
58
|
+ android:orientation="vertical"
|
59
|
59
|
android:gravity="center"
|
60
|
60
|
android:layout_marginStart="@dimen/_16sdp"
|
61
|
61
|
android:layout_marginEnd="@dimen/_16sdp">
|
|
62
|
+ <LinearLayout
|
|
63
|
+ android:layout_width="match_parent"
|
|
64
|
+ android:layout_height="25dp"
|
|
65
|
+ android:orientation="horizontal"
|
|
66
|
+ android:gravity="center"
|
|
67
|
+ android:layout_marginStart="@dimen/_16sdp"
|
|
68
|
+ android:layout_marginEnd="@dimen/_16sdp">
|
62
|
69
|
<androidx.appcompat.widget.AppCompatTextView
|
63
|
70
|
android:layout_width="0dp"
|
64
|
|
- android:layout_height="@dimen/_30sdp"
|
|
71
|
+ android:layout_height="25dp"
|
65
|
72
|
android:layout_weight="0.3"
|
66
|
|
- android:gravity="right|center_vertical"
|
67
|
|
- android:textSize="@dimen/_14sdp"
|
|
73
|
+ android:gravity="left|center_vertical"
|
|
74
|
+ android:textSize="16dp"
|
68
|
75
|
android:paddingEnd="@dimen/_12sdp"
|
69
|
76
|
android:textColor="@color/color_black"
|
70
|
77
|
android:text="@string/lbl_birth"
|
71
|
78
|
android:layout_alignParentRight="true"/>
|
72
|
|
- <androidx.appcompat.widget.AppCompatEditText
|
73
|
|
- android:id="@+id/etBirthYear"
|
74
|
|
- android:layout_width="0dp"
|
75
|
|
- android:layout_height="@dimen/_30sdp"
|
76
|
|
- android:layout_weight="0.3"
|
77
|
|
- android:background="@drawable/selector_edittext_focus"
|
78
|
|
- android:paddingStart="@dimen/_2sdp"
|
79
|
|
- android:inputType="number"
|
80
|
|
- android:text="@={viewModel.strBirthYear}"
|
81
|
|
- android:maxLength="4"
|
82
|
|
- android:gravity="center_vertical"/>
|
83
|
|
- <androidx.appcompat.widget.AppCompatEditText
|
84
|
|
- android:id="@+id/etBirthMonth"
|
85
|
|
- android:layout_width="0dp"
|
86
|
|
- android:layout_height="@dimen/_30sdp"
|
87
|
|
- android:layout_weight="0.2"
|
88
|
|
- android:layout_marginStart="@dimen/_2sdp"
|
89
|
|
- android:paddingStart="@dimen/_2sdp"
|
90
|
|
- android:background="@drawable/selector_edittext_focus"
|
91
|
|
- android:inputType="number"
|
92
|
|
- android:text="@={viewModel.strBirthMonth}"
|
93
|
|
- android:maxLength="2"
|
94
|
|
- android:gravity="center_vertical"/>
|
95
|
|
- <androidx.appcompat.widget.AppCompatEditText
|
96
|
|
- android:id="@+id/etBirthDay"
|
97
|
|
- android:layout_width="0dp"
|
98
|
|
- android:layout_height="@dimen/_30sdp"
|
99
|
|
- android:layout_weight="0.2"
|
100
|
|
- android:layout_marginStart="@dimen/_2sdp"
|
101
|
|
- android:paddingStart="@dimen/_2sdp"
|
102
|
|
- android:background="@drawable/selector_edittext_focus"
|
103
|
|
- android:inputType="number"
|
104
|
|
- android:text="@={viewModel.strBirthDay}"
|
105
|
|
- android:maxLength="2"
|
106
|
|
- android:gravity="center_vertical"/>
|
|
79
|
+ </LinearLayout>
|
|
80
|
+ <LinearLayout
|
|
81
|
+ android:layout_width="match_parent"
|
|
82
|
+ android:layout_height="30dp"
|
|
83
|
+ android:orientation="horizontal"
|
|
84
|
+ android:gravity="center"
|
|
85
|
+ android:layout_marginStart="@dimen/_16sdp"
|
|
86
|
+ android:layout_marginEnd="@dimen/_16sdp">
|
|
87
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
88
|
+ android:id="@+id/etBirthYear"
|
|
89
|
+ android:layout_width="0dp"
|
|
90
|
+ android:layout_height="30dp"
|
|
91
|
+ android:layout_weight="0.3"
|
|
92
|
+ android:background="@drawable/border_stroke_539e39"
|
|
93
|
+ android:paddingStart="@dimen/_2sdp"
|
|
94
|
+ android:inputType="number"
|
|
95
|
+ android:textSize="16dp"
|
|
96
|
+ android:text="@={viewModel.strBirthYear}"
|
|
97
|
+ android:maxLength="4"
|
|
98
|
+ android:hint="@string/hint_reg_yyyy"
|
|
99
|
+ android:textColorHint="@color/color_6e6e6e"
|
|
100
|
+ android:textAlignment="center"
|
|
101
|
+ android:gravity="center_vertical"/>
|
|
102
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
103
|
+ android:id="@+id/etBirthMonth"
|
|
104
|
+ android:layout_width="0dp"
|
|
105
|
+ android:layout_height="30dp"
|
|
106
|
+ android:layout_weight="0.2"
|
|
107
|
+ android:layout_marginStart="@dimen/_2sdp"
|
|
108
|
+ android:paddingStart="@dimen/_2sdp"
|
|
109
|
+ android:background="@drawable/border_stroke_539e39"
|
|
110
|
+ android:inputType="number"
|
|
111
|
+ android:textSize="16dp"
|
|
112
|
+ android:text="@={viewModel.strBirthMonth}"
|
|
113
|
+ android:maxLength="2"
|
|
114
|
+ android:hint="@string/hint_reg_mm"
|
|
115
|
+ android:textColorHint="@color/color_6e6e6e"
|
|
116
|
+ android:textAlignment="center"
|
|
117
|
+ android:gravity="center_vertical"/>
|
|
118
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
119
|
+ android:id="@+id/etBirthDay"
|
|
120
|
+ android:layout_width="0dp"
|
|
121
|
+ android:layout_height="30dp"
|
|
122
|
+ android:layout_weight="0.2"
|
|
123
|
+ android:layout_marginStart="@dimen/_2sdp"
|
|
124
|
+ android:paddingStart="@dimen/_2sdp"
|
|
125
|
+ android:background="@drawable/border_stroke_539e39"
|
|
126
|
+ android:inputType="number"
|
|
127
|
+ android:textSize="16dp"
|
|
128
|
+ android:text="@={viewModel.strBirthDay}"
|
|
129
|
+ android:maxLength="2"
|
|
130
|
+ android:hint="@string/hint_reg_dd"
|
|
131
|
+ android:textColorHint="@color/color_6e6e6e"
|
|
132
|
+ android:textAlignment="center"
|
|
133
|
+ android:gravity="center_vertical"/>
|
|
134
|
+ </LinearLayout>
|
107
|
135
|
</LinearLayout>
|
|
136
|
+ </LinearLayout>
|
|
137
|
+ <LinearLayout
|
|
138
|
+ android:id="@+id/layoutGendContent"
|
|
139
|
+ android:layout_width="match_parent"
|
|
140
|
+ android:layout_height="wrap_content"
|
|
141
|
+ android:orientation="vertical"
|
|
142
|
+ android:layout_marginTop="5dp">
|
108
|
143
|
|
109
|
144
|
<LinearLayout
|
110
|
145
|
android:layout_width="match_parent"
|
111
|
|
- android:layout_height="@dimen/_36sdp"
|
112
|
|
- android:orientation="horizontal"
|
|
146
|
+ android:layout_height="60dp"
|
|
147
|
+ android:orientation="vertical"
|
113
|
148
|
android:gravity="center"
|
114
|
149
|
android:layout_marginStart="@dimen/_16sdp"
|
115
|
150
|
android:layout_marginEnd="@dimen/_16sdp">
|
116
|
|
- <androidx.appcompat.widget.AppCompatTextView
|
117
|
|
- android:layout_width="0dp"
|
118
|
|
- android:layout_height="@dimen/_30sdp"
|
119
|
|
- android:layout_weight="0.3"
|
120
|
|
- android:gravity="right|center_vertical"
|
121
|
|
- android:textSize="@dimen/_14sdp"
|
122
|
|
- android:paddingEnd="@dimen/_12sdp"
|
123
|
|
- android:textColor="@color/color_black"
|
124
|
|
- android:text="@string/lbl_gender"
|
125
|
|
- android:layout_alignParentRight="true"/>
|
126
|
151
|
<LinearLayout
|
127
|
|
- android:layout_width="0dp"
|
128
|
|
- android:layout_height="@dimen/_30sdp"
|
129
|
|
- android:layout_weight="0.7"
|
|
152
|
+ android:layout_width="match_parent"
|
|
153
|
+ android:layout_height="25dp"
|
|
154
|
+ android:orientation="horizontal"
|
|
155
|
+ android:gravity="center"
|
|
156
|
+ android:layout_marginStart="@dimen/_16sdp"
|
|
157
|
+ android:layout_marginEnd="@dimen/_16sdp">
|
|
158
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
159
|
+ android:layout_width="0dp"
|
|
160
|
+ android:layout_height="25dp"
|
|
161
|
+ android:layout_weight="0.3"
|
|
162
|
+ android:gravity="left|center_vertical"
|
|
163
|
+ android:textSize="16dp"
|
|
164
|
+ android:paddingEnd="@dimen/_12sdp"
|
|
165
|
+ android:textColor="@color/color_black"
|
|
166
|
+ android:text="@string/lbl_gender"
|
|
167
|
+ android:layout_alignParentRight="true"/>
|
|
168
|
+ </LinearLayout>
|
|
169
|
+ <LinearLayout
|
|
170
|
+ android:layout_width="match_parent"
|
|
171
|
+ android:layout_height="30dp"
|
130
|
172
|
android:orientation="horizontal"
|
131
|
|
- android:paddingStart="16dp"
|
132
|
|
- android:gravity="center">
|
133
|
|
- <RadioGroup
|
134
|
|
- android:id="@+id/radioGroup"
|
|
173
|
+ android:gravity="center"
|
|
174
|
+ android:layout_marginStart="@dimen/_16sdp"
|
|
175
|
+ android:layout_marginEnd="@dimen/_16sdp">
|
|
176
|
+
|
|
177
|
+ <LinearLayout
|
|
178
|
+ android:layout_width="0dp"
|
|
179
|
+ android:layout_height="@dimen/_30sdp"
|
|
180
|
+ android:layout_weight="0.7"
|
|
181
|
+ android:gravity="left|center_vertical"
|
135
|
182
|
android:orientation="horizontal"
|
136
|
|
- android:layout_width="match_parent"
|
137
|
|
- android:layout_height="match_parent"
|
138
|
|
- android:paddingLeft="@dimen/_36sdp"
|
139
|
|
- android:paddingRight="@dimen/_36sdp"
|
140
|
|
- android:onCheckedChanged="@{viewModel::onGenderChanged}">
|
141
|
|
- <RadioButton
|
142
|
|
- android:id="@+id/rbMan"
|
143
|
|
- android:layout_width="0dp"
|
144
|
|
- android:layout_height="wrap_content"
|
145
|
|
- android:layout_weight="1"
|
146
|
|
- android:layoutDirection="rtl"
|
147
|
|
- android:button="@drawable/selector_radio_button"
|
148
|
|
- android:paddingLeft="@dimen/_22sdp"
|
149
|
|
- android:checked="@={viewModel.chkRbMan}"
|
150
|
|
- android:text="@string/lbl_gender_man" />
|
151
|
|
-
|
152
|
|
- <RadioButton
|
153
|
|
- android:id="@+id/rbWoman"
|
154
|
|
- android:layout_width="0dp"
|
155
|
|
- android:layout_height="wrap_content"
|
156
|
|
- android:layout_weight="1"
|
157
|
|
- android:layoutDirection="rtl"
|
158
|
|
- android:button="@drawable/selector_radio_button"
|
159
|
|
- android:paddingLeft="@dimen/_22sdp"
|
160
|
|
- android:checked="@={viewModel.chkRbWoman}"
|
161
|
|
- android:text="@string/lbl_gender_woman" />
|
162
|
|
- </RadioGroup>
|
|
183
|
+ android:paddingStart="0dp">
|
|
184
|
+
|
|
185
|
+ <RadioGroup
|
|
186
|
+ android:id="@+id/radioGroup"
|
|
187
|
+ android:layout_width="match_parent"
|
|
188
|
+ android:layout_height="match_parent"
|
|
189
|
+ android:layout_gravity="left"
|
|
190
|
+ android:gravity="left|center_vertical"
|
|
191
|
+ android:onCheckedChanged="@{viewModel::onGenderChanged}"
|
|
192
|
+ android:orientation="horizontal"
|
|
193
|
+ android:paddingLeft="@dimen/_36sdp"
|
|
194
|
+ android:paddingRight="@dimen/_36sdp">
|
|
195
|
+
|
|
196
|
+ <RadioButton
|
|
197
|
+ android:id="@+id/rbMan"
|
|
198
|
+ android:layout_width="0dp"
|
|
199
|
+ android:layout_height="wrap_content"
|
|
200
|
+ android:layout_weight="1"
|
|
201
|
+ android:button="@drawable/selector_radio_button"
|
|
202
|
+ android:checked="@={viewModel.chkRbMan}"
|
|
203
|
+ android:layoutDirection="rtl"
|
|
204
|
+ android:paddingLeft="@dimen/_22sdp"
|
|
205
|
+ android:text="@string/lbl_gender_man"
|
|
206
|
+ android:textAlignment="textStart"
|
|
207
|
+ android:textSize="16dp" />
|
|
208
|
+
|
|
209
|
+ <RadioButton
|
|
210
|
+ android:id="@+id/rbWoman"
|
|
211
|
+ android:layout_width="0dp"
|
|
212
|
+ android:layout_height="wrap_content"
|
|
213
|
+ android:layout_weight="1"
|
|
214
|
+ android:button="@drawable/selector_radio_button"
|
|
215
|
+ android:checked="@={viewModel.chkRbWoman}"
|
|
216
|
+ android:layoutDirection="rtl"
|
|
217
|
+ android:paddingLeft="@dimen/_22sdp"
|
|
218
|
+ android:text="@string/lbl_gender_woman"
|
|
219
|
+ android:textSize="16dp" />
|
|
220
|
+ </RadioGroup>
|
|
221
|
+ </LinearLayout>
|
163
|
222
|
</LinearLayout>
|
164
|
223
|
</LinearLayout>
|
165
|
|
-
|
|
224
|
+ </LinearLayout>
|
|
225
|
+ <LinearLayout
|
|
226
|
+ android:id="@+id/layoutHpContent"
|
|
227
|
+ android:layout_width="match_parent"
|
|
228
|
+ android:layout_height="wrap_content"
|
|
229
|
+ android:orientation="vertical"
|
|
230
|
+ android:layout_marginTop="5dp">
|
166
|
231
|
<LinearLayout
|
167
|
232
|
android:layout_width="match_parent"
|
168
|
|
- android:layout_height="@dimen/_36sdp"
|
169
|
|
- android:orientation="horizontal"
|
|
233
|
+ android:layout_height="60dp"
|
|
234
|
+ android:orientation="vertical"
|
170
|
235
|
android:gravity="center"
|
171
|
236
|
android:layout_marginStart="@dimen/_16sdp"
|
172
|
237
|
android:layout_marginEnd="@dimen/_16sdp">
|
173
|
|
- <androidx.appcompat.widget.AppCompatTextView
|
174
|
|
- android:layout_width="0dp"
|
175
|
|
- android:layout_height="@dimen/_30sdp"
|
176
|
|
- android:layout_weight="0.3"
|
177
|
|
- android:gravity="right|center_vertical"
|
178
|
|
- android:textSize="@dimen/_14sdp"
|
179
|
|
- android:paddingEnd="@dimen/_12sdp"
|
180
|
|
- android:textColor="@color/color_black"
|
181
|
|
- android:text="@string/lbl_phone"
|
182
|
|
- android:layout_alignParentRight="true"/>
|
183
|
|
-
|
184
|
|
- <androidx.appcompat.widget.AppCompatEditText
|
185
|
|
- android:id="@+id/etPhone"
|
186
|
|
- android:layout_width="0dp"
|
187
|
|
- android:layout_height="@dimen/_30sdp"
|
188
|
|
- android:layout_weight="0.7"
|
189
|
|
- android:paddingStart="16dp"
|
190
|
|
- android:inputType="number"
|
191
|
|
- android:text="@={viewModel.strPhoneNo}"
|
192
|
|
- android:maxLength="13"
|
193
|
|
- android:background="@drawable/selector_edittext_focus"
|
194
|
|
- android:onTextChanged="@{(text, start, before, count) -> viewModel.onTextChanged(1, text)}"
|
195
|
|
- android:gravity="center_vertical"/>
|
|
238
|
+ <LinearLayout
|
|
239
|
+ android:layout_width="match_parent"
|
|
240
|
+ android:layout_height="25dp"
|
|
241
|
+ android:orientation="horizontal"
|
|
242
|
+ android:gravity="center"
|
|
243
|
+ android:layout_marginStart="@dimen/_16sdp"
|
|
244
|
+ android:layout_marginEnd="@dimen/_16sdp">
|
|
245
|
+ <androidx.appcompat.widget.AppCompatTextView
|
|
246
|
+ android:layout_width="0dp"
|
|
247
|
+ android:layout_height="25dp"
|
|
248
|
+ android:layout_weight="0.3"
|
|
249
|
+ android:gravity="left|center_vertical"
|
|
250
|
+ android:textSize="16dp"
|
|
251
|
+ android:paddingEnd="@dimen/_12sdp"
|
|
252
|
+ android:textColor="@color/color_black"
|
|
253
|
+ android:text="@string/lbl_phone"
|
|
254
|
+ android:layout_alignParentRight="true"/>
|
|
255
|
+ </LinearLayout>
|
|
256
|
+ <LinearLayout
|
|
257
|
+ android:layout_width="match_parent"
|
|
258
|
+ android:layout_height="30dp"
|
|
259
|
+ android:orientation="horizontal"
|
|
260
|
+ android:gravity="center"
|
|
261
|
+ android:layout_marginStart="@dimen/_16sdp"
|
|
262
|
+ android:layout_marginEnd="@dimen/_16sdp">
|
|
263
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
264
|
+ android:id="@+id/etPhone"
|
|
265
|
+ android:layout_width="0dp"
|
|
266
|
+ android:layout_height="30dp"
|
|
267
|
+ android:layout_weight="0.7"
|
|
268
|
+ android:paddingStart="16dp"
|
|
269
|
+ android:inputType="number"
|
|
270
|
+ android:textSize="16dp"
|
|
271
|
+ android:text="@={viewModel.strPhoneNo}"
|
|
272
|
+ android:maxLength="13"
|
|
273
|
+ android:hint="@string/hint_reg_hp"
|
|
274
|
+ android:textColorHint="@color/color_6e6e6e"
|
|
275
|
+ android:background="@drawable/border_stroke_539e39"
|
|
276
|
+ android:onTextChanged="@{(text, start, before, count) -> viewModel.onTextChanged(1, text)}"
|
|
277
|
+ android:gravity="center_vertical"/>
|
|
278
|
+ </LinearLayout>
|
196
|
279
|
</LinearLayout>
|
197
|
280
|
</LinearLayout>
|
198
|
|
-
|
199
|
281
|
</LinearLayout>
|
200
|
282
|
|
201
|
283
|
<androidx.appcompat.widget.AppCompatButton
|