2323 android : background =" @drawable/attendance_img" />
2424
2525 <EditText
26- android : layout_width =" wrap_content"
27- android : layout_height =" wrap_content"
28- android : layout_marginTop =" 25dp"
29- android : backgroundTint =" @android:color/white"
30- android : inputType =" number"
31- android : maxLength =" 2"
32- android : layout_marginBottom =" 68dp"
33- android : maxLines =" 1"
34- android : minEms =" 1"
35- android : textColor =" @android:color/white"
36- android : textCursorDrawable =" @android:color/white"
37- android : textColorHighlight =" @android:color/white"
38- android : textSize =" 84dp"
39- app : layout_constraintBottom_toBottomOf =" @+id/imgAttendanceInput"
40- android : textStyle =" bold"
41- app : layout_constraintLeft_toLeftOf =" @+id/imgAttendanceInput"
42- app : layout_constraintRight_toRightOf =" @+id/imgAttendanceInput"
43- app : layout_constraintTop_toTopOf =" @+id/imgAttendanceInput"
44- tools : ignore =" Autofill,LabelFor,SpUsage" />
26+ android : layout_width =" wrap_content"
27+ android : layout_height =" wrap_content"
28+ android : layout_marginTop =" 25dp"
29+ android : backgroundTint =" @android:color/white"
30+ android : inputType =" number"
31+ android : maxLength =" 2"
32+ android : layout_marginBottom =" 68dp"
33+ android : maxLines =" 1"
34+ android : minEms =" 1"
35+ android : text =" @={mainViewModel.editNumberAttendance}"
36+ android : onTextChanged =" @{(text,start,end,count)->mainViewModel.onInputNumberTextChanged(text)}"
37+ android : textColor =" @android:color/white"
38+ android : textCursorDrawable =" @android:color/white"
39+ android : textColorHighlight =" @android:color/white"
40+ android : textSize =" 84dp"
41+ app : layout_constraintBottom_toBottomOf =" @+id/imgAttendanceInput"
42+ android : textStyle =" bold"
43+ app : layout_constraintLeft_toLeftOf =" @+id/imgAttendanceInput"
44+ app : layout_constraintRight_toRightOf =" @+id/imgAttendanceInput"
45+ app : layout_constraintTop_toTopOf =" @+id/imgAttendanceInput"
46+ tools : ignore =" Autofill,LabelFor,SpUsage" />
4547
4648 <TextView
4749 android : id =" @+id/tvExplanation"
8284 app : layout_constraintRight_toRightOf =" parent"
8385 tools : ignore =" SpUsage" />
8486 <Button
85- android : id =" @+id/btnAttendance"
86- android : layout_width =" match_parent"
87- android : layout_height =" wrap_content"
88- android : layout_marginLeft =" 35dp"
89- android : layout_marginRight =" 35dp"
90- android : layout_marginBottom =" 70dp"
91- android : background =" @drawable/login_btn_state"
92- android : elevation =" 11dp"
93- android : enabled =" false"
94- android : onClick =" @{()->mainViewModel.onClick()}"
95- android : text =" @string/attendance"
96- android : textColor =" @android:color/white"
97- android : textSize =" 12dp"
98- app : layout_constraintBottom_toBottomOf =" parent"
99- tools : ignore =" SpUsage" />
87+ android : id =" @+id/btnAttendance"
88+ android : layout_width =" match_parent"
89+ android : layout_height =" wrap_content"
90+ android : layout_marginLeft =" 35dp"
91+ android : layout_marginRight =" 35dp"
92+ android : layout_marginBottom =" 70dp"
93+ android : background =" @drawable/login_btn_state"
94+ android : elevation =" 11dp"
95+ android : enabled =" @{safeUnbox(mainViewModel.btnEnableAttendance)? true : false}"
96+ android : text =" @string/attendance"
97+ android : textColor =" @android:color/white"
98+ android : textSize =" 12dp"
99+ app : layout_constraintBottom_toBottomOf =" parent"
100+ tools : ignore =" SpUsage" />
100101</androidx .constraintlayout.widget.ConstraintLayout>
101102</layout >
0 commit comments