code: Modification fragment Login XML

This commit is contained in:
veronicagtea 2025-02-19 12:19:57 +03:00
parent 8a5851476d
commit a1827a4db3
3 changed files with 41 additions and 4 deletions

View File

@ -21,7 +21,8 @@
tools:targetApi="31">
<activity
android:name=".ui.RootActivity"
android:exported="true">
android:exported="true"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -89,7 +89,7 @@
<View
android:id="@+id/position_field"
android:layout_width="220dp"
android:layout_height="40dp"
android:layout_height="35dp"
android:background="@drawable/button_grestroke_whiteback"
app:layout_constraintEnd_toEndOf="@+id/username_field"
app:layout_constraintTop_toTopOf="@+id/photo_field" />
@ -101,11 +101,32 @@
android:layout_marginStart="10dp"
android:text="@string/jobText"
android:textColor="@color/black"
android:textSize="15sp"
android:textSize="13sp"
app:layout_constraintBottom_toBottomOf="@+id/position_field"
app:layout_constraintStart_toStartOf="@+id/position_field"
app:layout_constraintTop_toTopOf="@+id/position_field" />
<View
android:id="@+id/lastEntry_field"
android:layout_width="220dp"
android:layout_height="35dp"
android:background="@drawable/button_grestroke_whiteback"
app:layout_constraintBottom_toBottomOf="@+id/photo_field"
app:layout_constraintEnd_toEndOf="@+id/position_field"
app:layout_constraintTop_toBottomOf="@+id/position_field" />
<TextView
android:id="@+id/lastEntry"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lastLoginText"
android:textColor="@color/black"
android:textSize="13sp"
app:layout_constraintBottom_toBottomOf="@+id/lastEntry_field"
app:layout_constraintEnd_toEndOf="@+id/lastEntry_field"
app:layout_constraintStart_toStartOf="@+id/lastEntry_field"
app:layout_constraintTop_toTopOf="@+id/lastEntry_field" />
<View
android:id="@+id/scan"
android:layout_width="320dp"
@ -149,6 +170,7 @@
app:layout_constraintEnd_toEndOf="@+id/scan"
app:layout_constraintTop_toTopOf="@+id/scan" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/entrance_data"
android:layout_width="wrap_content"
@ -158,5 +180,17 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/scan" />
<TextView
android:id="@+id/error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:gravity="center"
android:text="@string/error"
android:textSize="14sp"
app:layout_constraintBottom_toTopOf="@+id/scan"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -26,7 +26,9 @@
<string name="text_scan">Сканировать</string>
<string name="text_qr">QR код</string>
<string name="errorGoText">Ошибка перехода</string>
<string name="errorGoText">Ошибка перехода</string>
<string name="serverError">Ошибка сервера</string>
<string name="userNotFing">Пользователь не найден</string>
<string name="text_input_login">Введите логин сотрудника</string>
<string name="text_for">чтобы посмотреть информацию о нем</string>
<string name="error">error</string>
</resources>