diff --git a/app/src/main/res/layout/fragment_admin.xml b/app/src/main/res/layout/fragment_admin.xml new file mode 100644 index 0000000..3cc0174 --- /dev/null +++ b/app/src/main/res/layout/fragment_admin.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto"> +<LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="16dp" + android:orientation="vertical"> + <com.google.android.material.floatingactionbutton.FloatingActionButton + android:id="@+id/floatingActionButton2" + style="@style/Theme.UiTemplate.FAB.Gray" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:clickable="true" + android:src="@drawable/ic_back" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + <TextView + android:id="@+id/text_login" + android:padding="35dp" + style="@style/Theme.UiTemplate.TextH1" + android:layout_width="wrap_content" + android:layout_marginBottom="10dp" + android:layout_height="wrap_content" + android:gravity="center" + android:layout_gravity="center" + android:text="@string/admin_main" /> + <com.google.android.material.textfield.TextInputLayout + style="@style/Theme.UiTemplate.Input" + android:id="@+id/input_username" + android:layout_marginTop="45dp" + android:layout_width="match_parent" + app:layout_constraintWidth_max="400dp" + app:layout_constraintWidth_percent="0.8" + android:layout_height="58dp"> + + <com.google.android.material.textfield.TextInputEditText + android:id="@+id/username" + style="@style/Theme.UiTemplate.Input.Text" + android:layout_width="match_parent" + android:layout_height="60dp" + android:inputType="text" + android:maxLines="1" + android:hint="@string/admin_input_hint"> + </com.google.android.material.textfield.TextInputEditText> + </com.google.android.material.textfield.TextInputLayout> + <Button + android:id="@+id/login" + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/Theme.UiTemplate.Button" + android:layout_marginTop="58dp" + android:layout_gravity="center" + android:text="@string/admin_button" /> +</LinearLayout> +</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file diff --git a/app/src/main/res/values/strings_admin.xml b/app/src/main/res/values/strings_admin.xml new file mode 100644 index 0000000..0673a87 --- /dev/null +++ b/app/src/main/res/values/strings_admin.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="admin_main">Check workers’ information</string> + <string name="admin_input_hint">Enter worker’s login</string> + <string name="admin_button">Check out</string> +</resources> \ No newline at end of file