day2_commit_1.5_fragment_main_edited
This commit is contained in:
parent
32378b78fe
commit
2ec434ea1d
@ -3,7 +3,7 @@
|
|||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:gravity="center"
|
android:gravity="bottom"
|
||||||
android:padding="16dp"
|
android:padding="16dp"
|
||||||
android:background="@android:color/white">
|
android:background="@android:color/white">
|
||||||
<!-- Поле для ФИО -->
|
<!-- Поле для ФИО -->
|
||||||
@ -13,6 +13,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Имя Фамилия"
|
android:text="Имя Фамилия"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
android:visibility="visible" />
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Фото пользователя -->
|
<!-- Фото пользователя -->
|
||||||
@ -22,7 +23,8 @@
|
|||||||
android:layout_height="100dp"
|
android:layout_height="100dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:contentDescription="@string/photo_description"
|
android:contentDescription="@string/photo_description"
|
||||||
android:visibility="gone" />
|
android:layout_marginBottom="5dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Поле для должности -->
|
<!-- Поле для должности -->
|
||||||
<TextView
|
<TextView
|
||||||
@ -30,7 +32,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Должность"
|
android:text="Должность"
|
||||||
android:visibility="gone" />
|
android:layout_marginBottom="5dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Поле для даты последнего входа -->
|
<!-- Поле для даты последнего входа -->
|
||||||
<TextView
|
<TextView
|
||||||
@ -38,32 +41,20 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="2024-02-31 08:31"
|
android:text="2024-02-31 08:31"
|
||||||
android:visibility="gone" />
|
android:layout_marginBottom="75dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
<!-- Кнопки -->
|
<!-- Кнопки -->
|
||||||
<Button
|
|
||||||
android:id="@+id/logout"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/logout"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/refresh"
|
android:id="@+id/refresh"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:backgroundTint="@color/colorPrimary"
|
|
||||||
android:text="@string/refresh"
|
android:text="@string/refresh"
|
||||||
|
android:backgroundTint="@color/colorPrimary"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:padding="12dp"
|
android:padding="12dp"/>
|
||||||
android:layout_marginBottom="16dp"/>
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/scan"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/scan_qr_code"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<!-- Поле ошибки -->
|
<!-- Поле ошибки -->
|
||||||
<TextView
|
<TextView
|
||||||
@ -72,5 +63,30 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/error_placeholder"
|
android:text="@string/error_placeholder"
|
||||||
android:textColor="@android:color/holo_red_dark"
|
android:textColor="@android:color/holo_red_dark"
|
||||||
android:visibility="gone" />
|
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<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"
|
||||||
|
android:textColor="@android:color/white"
|
||||||
|
android:padding="12dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/logout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/logout"
|
||||||
|
android:layout_marginBottom="50dp"
|
||||||
|
android:backgroundTint="@color/colorPrimary"
|
||||||
|
android:textColor="@android:color/white"
|
||||||
|
android:padding="12dp"
|
||||||
|
android:visibility="visible" />
|
||||||
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user