201 lines
9.0 KiB
XML
201 lines
9.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||
xmlns:tools="http://schemas.android.com/tools"
|
||
android:id="@+id/swipeRefresh"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent">
|
||
<androidx.core.widget.NestedScrollView
|
||
android:fillViewport="true"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent">
|
||
|
||
<androidx.constraintlayout.widget.ConstraintLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:background="?android:attr/colorBackground">
|
||
<ImageButton
|
||
android:id="@+id/back_to_search"
|
||
android:layout_width="50dp"
|
||
android:layout_height="50dp"
|
||
android:padding="10dp"
|
||
android:backgroundTint="@color/primary"
|
||
android:src="@drawable/ic_back"
|
||
android:tint="@android:color/white"
|
||
android:layout_marginTop="10dp"
|
||
app:cornerRadius="25dp"
|
||
android:visibility="invisible"
|
||
tools:ignore="MissingConstraints,UseAppTint" />
|
||
<TextView
|
||
android:padding="15dp"
|
||
android:visibility="gone"
|
||
android:layout_marginTop="10dp"
|
||
android:id="@+id/title_profile"
|
||
android:textAlignment="center"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:textSize="20sp"
|
||
android:letterSpacing="0.05"
|
||
android:background="?android:attr/colorBackground"
|
||
android:textColor="?attr/colorOnBackground"
|
||
android:text="@string/title_profile"
|
||
tools:ignore="MissingConstraints" />
|
||
|
||
<LinearLayout
|
||
android:id="@+id/linearLayout"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:gravity="center_horizontal"
|
||
android:orientation="vertical"
|
||
android:paddingTop="50dp"
|
||
tools:layout_editor_absoluteX="0dp"
|
||
tools:layout_editor_absoluteY="0dp">
|
||
|
||
<androidx.cardview.widget.CardView
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="5dp"
|
||
|
||
android:elevation="10dp"
|
||
app:cardCornerRadius="80dp">
|
||
|
||
|
||
<ImageView
|
||
android:id="@+id/avatar"
|
||
android:layout_width="150dp"
|
||
android:layout_height="150dp"
|
||
android:layout_margin="10dp"
|
||
android:layout_marginTop="10dp"
|
||
android:foregroundGravity="center"
|
||
android:importantForAccessibility="no"
|
||
android:src="@drawable/_user_"
|
||
|
||
|
||
app:layout_constraintBottom_toTopOf="@+id/title"
|
||
app:layout_constraintTop_toTopOf="parent" />
|
||
</androidx.cardview.widget.CardView>
|
||
|
||
<androidx.constraintlayout.helper.widget.Flow
|
||
android:id="@+id/flow"
|
||
android:layout_width="0dp"
|
||
android:layout_height="0dp"
|
||
android:orientation="vertical"
|
||
app:constraint_referenced_ids="avatar, fio, next,error, logout"
|
||
app:flow_verticalGap="16dp"
|
||
app:flow_verticalStyle="packed"
|
||
app:layout_constraintBottom_toBottomOf="parent"
|
||
app:layout_constraintEnd_toEndOf="parent"
|
||
app:layout_constraintStart_toStartOf="parent"
|
||
app:layout_constraintTop_toTopOf="parent" />
|
||
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:gravity="center_horizontal"
|
||
android:orientation="vertical">
|
||
|
||
<com.google.android.material.textview.MaterialTextView
|
||
android:id="@+id/fio"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="10dp"
|
||
android:background="?android:attr/colorBackground"
|
||
android:letterSpacing="0.05"
|
||
android:text="Name"
|
||
android:textAlignment="center"
|
||
android:textColor="?attr/colorOnBackground"
|
||
android:textSize="24sp" />
|
||
|
||
<com.google.android.material.textview.MaterialTextView
|
||
android:id="@+id/position"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="16dp"
|
||
|
||
android:layout_marginTop="10dp"
|
||
android:background="?android:attr/colorBackground"
|
||
android:letterSpacing="0.05"
|
||
android:padding="15dp"
|
||
android:text="Должность пользователя"
|
||
android:textAlignment="center"
|
||
android:textColor="?attr/colorOnBackground"
|
||
android:textSize="18sp" />
|
||
|
||
<com.google.android.material.textview.MaterialTextView
|
||
android:id="@+id/rights_using_smartphone"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="16dp"
|
||
|
||
android:layout_marginTop="10dp"
|
||
android:background="?android:attr/colorBackground"
|
||
android:letterSpacing="0.05"
|
||
android:padding="15dp"
|
||
android:text="Права с помощью смартфона"
|
||
android:textAlignment="center"
|
||
android:textColor="?attr/colorOnBackground"
|
||
android:textSize="18sp" />
|
||
|
||
<com.google.android.material.button.MaterialButton
|
||
android:id="@+id/logout"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="16dp"
|
||
android:maxHeight="200dp"
|
||
android:padding="12dp"
|
||
|
||
android:text="@string/logout"
|
||
android:textColor="@color/white"
|
||
android:textSize="16sp"
|
||
|
||
app:backgroundTint="@color/primary"
|
||
app:cornerRadius="8dp"
|
||
app:rippleColor="@color/white"
|
||
app:strokeColor="@color/black"
|
||
app:strokeWidth="1dp" />
|
||
|
||
<com.google.android.material.button.MaterialButton
|
||
android:id="@+id/change_rights"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_margin="16dp"
|
||
android:maxHeight="200dp"
|
||
android:padding="12dp"
|
||
android:text="@string/change_rights"
|
||
|
||
android:textColor="@color/white"
|
||
android:textSize="16sp"
|
||
android:visibility="gone"
|
||
app:backgroundTint="@color/primary"
|
||
|
||
|
||
app:cardElevation="8dp"
|
||
app:cornerRadius="8dp"
|
||
app:rippleColor="@color/white"
|
||
app:strokeColor="@color/black"
|
||
app:strokeWidth="1dp" />
|
||
|
||
<TextView
|
||
android:id="@+id/error"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:visibility="gone" />
|
||
|
||
<androidx.recyclerview.widget.RecyclerView
|
||
android:id="@+id/recyclerViewLogs"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="0dp"
|
||
android:layout_weight="1"
|
||
android:padding="16dp"
|
||
tools:listitem="@layout/item_scanner_view" />
|
||
</LinearLayout>
|
||
</LinearLayout>
|
||
|
||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
</androidx.core.widget.NestedScrollView>
|
||
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
||
|
||
|