111 lines
3.8 KiB
XML
111 lines
3.8 KiB
XML
<LinearLayout 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"
|
|
android:orientation="vertical"
|
|
android:gravity="bottom"
|
|
android:padding="16dp"
|
|
android:background="@android:color/white">
|
|
|
|
<!-- Поле для ФИО -->
|
|
<TextView
|
|
android:id="@+id/fullname"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/fullname_label"
|
|
android:textSize="18sp"
|
|
android:layout_marginBottom="5dp"
|
|
android:visibility="gone" />
|
|
|
|
<!-- Фото пользователя. -->
|
|
<ImageView
|
|
android:id="@+id/photo"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/photo_description"
|
|
android:layout_marginBottom="5dp"
|
|
android:visibility="gone" />
|
|
|
|
<!-- Поле для должности -->
|
|
<TextView
|
|
android:id="@+id/position"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/position_label"
|
|
android:layout_marginBottom="5dp"
|
|
android:visibility="gone" />
|
|
|
|
<!-- Поле для даты последнего входа -->
|
|
<TextView
|
|
android:id="@+id/lastEntry"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="2024-02-31 08:31"
|
|
android:layout_marginBottom="75dp"
|
|
android:visibility="gone" />
|
|
|
|
<!-- Кнопка обновления -->
|
|
<Button
|
|
android:id="@+id/refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/refresh"
|
|
app:cornerRadius="16dp"
|
|
android:backgroundTint="@color/colorPrimary"
|
|
android:textColor="@android:color/white"
|
|
android:layout_marginBottom="12dp"
|
|
android:padding="12dp"/>
|
|
|
|
<!-- Поле ошибки -->
|
|
<TextView
|
|
android:id="@+id/error"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/error_placeholder"
|
|
android:textColor="@android:color/holo_red_dark"
|
|
android:visibility="gone" />
|
|
|
|
<!-- RecyclerView для списка проходов -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:visibility="gone" />
|
|
|
|
<!-- Кнопки -->
|
|
<Button
|
|
android:id="@+id/scan"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/scan_qr_code"
|
|
android:layout_marginBottom="12dp"
|
|
android:backgroundTint="@color/colorPrimary"
|
|
app:cornerRadius="16dp"
|
|
android:textColor="@android:color/white"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/logout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/logout"
|
|
android:layout_marginBottom="50dp"
|
|
app:cornerRadius="16dp"
|
|
android:backgroundTint="@color/colorPrimary"
|
|
android:textColor="@android:color/white"
|
|
android:visibility="gone" />
|
|
|
|
<Button
|
|
android:id="@+id/admin_panel"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/admin_panel"
|
|
app:cornerRadius="16dp"
|
|
android:backgroundTint="@color/colorPrimary"
|
|
android:layout_marginTop="16dp"
|
|
android:visibility="gone" />
|
|
|
|
</LinearLayout>
|