RecyclerView update

This commit is contained in:
Serafim_Pankin 2025-02-19 10:50:38 +03:00
parent 05d27f3cfe
commit 6a95267179
4 changed files with 223 additions and 115 deletions

View File

@ -0,0 +1,115 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="512dp"
android:height="512dp"
android:viewportWidth="512"
android:viewportHeight="512">
<path
android:pathData="M18.5,18.5l-2.5,2.4 0,35.1 0,35.1 2.5,2.4 2.4,2.5 35.1,-0 35.1,-0 2.4,-2.5 2.5,-2.4 0,-35.1 0,-35.1 -2.5,-2.4 -2.4,-2.5 -35.1,-0 -35.1,-0 -2.4,2.5zM80,56l0,24 -24,-0 -24,-0 0,-24 0,-24 24,-0 24,-0 0,24z"
android:fillColor="#FFFFFF"
android:strokeColor="#000000"/>
<path
android:pathData="M50.5,50.5c-5,4.9 -1.5,13.5 5.5,13.5 4.1,-0 8,-3.9 8,-8 0,-4.1 -3.9,-8 -8,-8 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M114.5,18.5c-5,4.9 -1.5,13.5 5.5,13.5 4.1,-0 8,-3.9 8,-8 0,-4.1 -3.9,-8 -8,-8 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M146.5,18.5c-1.6,1.5 -2.5,3.6 -2.5,5.5 0,5.1 3.8,8 10.5,8l5.5,-0 0,21.5c0,21.6 0,21.6 2.5,24 1.5,1.6 3.6,2.5 5.5,2.5 1.9,-0 4,-0.9 5.5,-2.5l2.5,-2.4 0,-27.1 0,-27.1 -2.5,-2.4c-2.3,-2.4 -3.1,-2.5 -13.5,-2.5 -10.4,-0 -11.2,0.1 -13.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M194.5,18.5l-2.5,2.4 0,35.1 0,35.1 2.5,2.4c2.3,2.4 3.1,2.5 13.5,2.5 10.4,-0 11.2,-0.1 13.5,-2.5 3.3,-3.2 3.3,-7.8 0,-11 -2,-2.1 -3.4,-2.5 -8,-2.5l-5.5,-0 0,-24 0,-24 24,-0 24,-0 0,5.5c0,4.6 0.4,6 2.5,8 3.2,3.3 7.8,3.3 11,-0 2.4,-2.3 2.5,-3.1 2.5,-13.5 0,-10.4 -0.1,-11.2 -2.5,-13.5l-2.4,-2.5 -35.1,-0 -35.1,-0 -2.4,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M114.5,50.5c-1.6,1.5 -2.5,3.6 -2.5,5.5 0,1.9 0.9,4 2.5,5.5 2.3,2.4 3.1,2.5 13.5,2.5 10.4,-0 11.2,-0.1 13.5,-2.5 1.6,-1.5 2.5,-3.6 2.5,-5.5 0,-1.9 -0.9,-4 -2.5,-5.5 -2.3,-2.4 -3.1,-2.5 -13.5,-2.5 -10.4,-0 -11.2,0.1 -13.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M226.5,50.5c-5,4.9 -1.5,13.5 5.5,13.5 4.1,-0 8,-3.9 8,-8 0,-4.1 -3.9,-8 -8,-8 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M270.6,65.1c-6.2,1.5 -15.3,6.8 -19.7,11.6 -2.2,2.4 -5.5,7.4 -7.2,11.1l-3.2,6.7 0,185.6 0,185.5 3.7,7.6c4.5,9.1 10.3,14.7 19.6,19.1l6.7,3.2 97.5,-0 97.5,-0 6.7,-3.2c9.3,-4.4 15.1,-10 19.6,-19.1l3.7,-7.6 0,-185.6 0,-185.6 -3.7,-7.6c-4.5,-9.1 -10.3,-14.7 -19.6,-19.1l-6.7,-3.2 -95.5,-0.2c-55.6,-0.1 -97.1,0.3 -99.4,0.8zM463.4,81.2c5.5,1.6 13.8,9.9 15.4,15.4 1.8,6 1.8,360.8 0,366.8 -1.6,5.5 -9.9,13.8 -15.4,15.4 -5.9,1.7 -184.9,1.7 -190.8,-0 -5.5,-1.6 -13.8,-9.9 -15.4,-15.4 -1.8,-6 -1.8,-360.8 0,-366.8 1.5,-5.1 9.9,-13.7 14.8,-15.3 5.3,-1.6 185.8,-1.7 191.4,-0.1z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M322.5,98.5c-1.6,1.5 -2.5,3.6 -2.5,5.5 0,1.9 0.9,4 2.5,5.5l2.4,2.5 43.1,-0 43.1,-0 2.4,-2.5c1.6,-1.5 2.5,-3.6 2.5,-5.5 0,-1.9 -0.9,-4 -2.5,-5.5l-2.4,-2.5 -43.1,-0 -43.1,-0 -2.4,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M354.5,450.5c-1.6,1.5 -2.5,3.6 -2.5,5.5 0,1.9 0.9,4 2.5,5.5 2.3,2.4 3.1,2.5 13.5,2.5 10.4,-0 11.2,-0.1 13.5,-2.5 1.6,-1.5 2.5,-3.6 2.5,-5.5 0,-1.9 -0.9,-4 -2.5,-5.5 -2.3,-2.4 -3.1,-2.5 -13.5,-2.5 -10.4,-0 -11.2,0.1 -13.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M114.5,82.5c-1.6,1.5 -2.5,3.6 -2.5,5.5 0,5.1 3.8,8 10.5,8l5.5,-0 0,21.5c0,21.6 0,21.6 2.5,24 1.5,1.6 3.6,2.5 5.5,2.5 1.9,-0 4,-0.9 5.5,-2.5 2.4,-2.3 2.5,-2.9 2.5,-16l0,-13.5 13.5,-0c13.1,-0 13.7,-0.1 16,-2.5 3.3,-3.2 3.3,-7.8 0,-11 -2.3,-2.4 -2.9,-2.5 -16,-2.5l-13.5,-0 0,-5.5c0,-4.6 -0.4,-6 -2.5,-8 -2.3,-2.4 -3.1,-2.5 -13.5,-2.5 -10.4,-0 -11.2,0.1 -13.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M18.5,114.5c-1.6,1.5 -2.5,3.6 -2.5,5.5 0,1.9 0.9,4 2.5,5.5 2.3,2.4 3.1,2.5 13.5,2.5 10.4,-0 11.2,-0.1 13.5,-2.5 3.3,-3.2 3.3,-7.8 0,-11 -2.3,-2.4 -3.1,-2.5 -13.5,-2.5 -10.4,-0 -11.2,0.1 -13.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M66.5,114.5c-5,4.9 -1.5,13.5 5.5,13.5 4.1,-0 8,-3.9 8,-8 0,-4.1 -3.9,-8 -8,-8 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M98.5,114.5c-2.1,2 -2.5,3.4 -2.5,8l0,5.5 -5.5,-0c-4.6,-0 -6,0.4 -8,2.5 -2.4,2.3 -2.5,2.9 -2.5,16l0,13.5 -5.5,-0c-6.7,-0 -10.5,2.9 -10.5,8 0,1.9 0.9,4 2.5,5.5 2.4,2.5 2.4,2.5 24,2.5l21.5,-0 0,5.5c0,6.7 2.9,10.5 8,10.5 1.9,-0 4,-0.9 5.5,-2.5 2.4,-2.3 2.5,-3.1 2.5,-13.5 0,-10.4 -0.1,-11.2 -2.5,-13.5 -2.3,-2.4 -2.9,-2.5 -16,-2.5l-13.5,-0 0,-8 0,-8 5.5,-0c4.6,-0 6,-0.4 8,-2.5 2.4,-2.3 2.5,-3.1 2.5,-13.5 0,-10.4 -0.1,-11.2 -2.5,-13.5 -1.5,-1.6 -3.6,-2.5 -5.5,-2.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M178.5,114.5c-2.1,2 -2.5,3.4 -2.5,8l0,5.5 -5.5,-0c-4.6,-0 -6,0.4 -8,2.5 -3.3,3.2 -3.3,7.8 0,11 2.3,2.4 2.9,2.5 16,2.5l13.5,-0 0,5.5c0,6.7 2.9,10.5 8,10.5 5.1,-0 8,-3.8 8,-10.5l0,-5.5 5.5,-0c4.6,-0 6,-0.4 8,-2.5 2.4,-2.3 2.5,-3.1 2.5,-13.5 0,-10.4 -0.1,-11.2 -2.5,-13.5 -1.5,-1.6 -3.6,-2.5 -5.5,-2.5 -5.1,-0 -8,3.8 -8,10.5l0,5.5 -8,-0 -8,-0 0,-5.5c0,-6.7 -2.9,-10.5 -8,-10.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M50.5,130.5c-5,4.9 -1.5,13.5 5.5,13.5 4.1,-0 8,-3.9 8,-8 0,-4.1 -3.9,-8 -8,-8 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M18.5,146.5c-2.4,2.3 -2.5,3.1 -2.5,13.5 0,10.4 0.1,11.2 2.5,13.5 2.3,2.4 3.1,2.5 13.5,2.5 10.4,-0 11.2,-0.1 13.5,-2.5 3.3,-3.2 3.3,-7.8 0,-11 -2,-2.1 -3.4,-2.5 -8,-2.5l-5.5,-0 0,-5.5c0,-6.7 -2.9,-10.5 -8,-10.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M146.5,146.5c-2.5,2.4 -2.5,2.6 -2.5,21.5 0,18.9 0,19.1 2.5,21.5 1.5,1.6 3.6,2.5 5.5,2.5 5.1,-0 8,-3.8 8,-10.5l0,-5.5 5.5,-0c6.7,-0 10.5,-2.9 10.5,-8 0,-5.1 -3.8,-8 -10.5,-8l-5.5,-0 0,-5.5c0,-6.7 -2.9,-10.5 -8,-10.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M210.5,162.5c-2.1,2 -2.5,3.4 -2.5,8l0,5.5 -13.5,-0c-13.1,-0 -13.7,0.1 -16,2.5 -1.6,1.5 -2.5,3.6 -2.5,5.5 0,1.9 0.9,4 2.5,5.5 2.3,2.4 2.9,2.5 16,2.5l13.5,-0 0,5.5c0,6.7 2.9,10.5 8,10.5 1.9,-0 4,-0.9 5.5,-2.5 2.5,-2.4 2.5,-2.6 2.5,-21.5 0,-18.9 0,-19.1 -2.5,-21.5 -1.5,-1.6 -3.6,-2.5 -5.5,-2.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M18.5,194.5l-2.5,2.4 0,35.1 0,35.1 2.5,2.4 2.4,2.5 35.1,-0 35.1,-0 2.4,-2.5 2.5,-2.4 0,-35.1 0,-35.1 -2.5,-2.4 -2.4,-2.5 -35.1,-0 -35.1,-0 -2.4,2.5zM80,232l0,24 -24,-0 -24,-0 0,-24 0,-24 24,-0 24,-0 0,24z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M50.5,226.5c-5,4.9 -1.5,13.5 5.5,13.5 4.1,-0 8,-3.9 8,-8 0,-4.1 -3.9,-8 -8,-8 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M130.5,194.5c-2.1,2 -2.5,3.4 -2.5,8l0,5.5 -5.5,-0c-4.6,-0 -6,0.4 -8,2.5 -3.3,3.2 -3.3,7.8 0,11 2.3,2.4 3.1,2.5 13.5,2.5 10.4,-0 11.2,-0.1 13.5,-2.5 2.4,-2.3 2.5,-3.1 2.5,-13.5 0,-10.4 -0.1,-11.2 -2.5,-13.5 -1.5,-1.6 -3.6,-2.5 -5.5,-2.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M162.5,210.5c-5,4.9 -1.5,13.5 5.5,13.5 4.1,-0 8,-3.9 8,-8 0,-4.1 -3.9,-8 -8,-8 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M194.5,210.5c-2.1,2 -2.5,3.4 -2.5,8l0,5.5 -5.5,-0c-4.6,-0 -6,0.4 -8,2.5 -3.3,3.2 -3.3,7.8 0,11 2.4,2.5 2.6,2.5 21.5,2.5 18.9,-0 19.1,-0 21.5,-2.5 1.6,-1.5 2.5,-3.6 2.5,-5.5 0,-5.1 -3.8,-8 -10.5,-8l-5.5,-0 0,-5.5c0,-6.7 -2.9,-10.5 -8,-10.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M146.5,226.5c-2.5,2.4 -2.5,2.6 -2.5,21.5 0,25.7 -1.7,24 24,24 18.9,-0 19.1,-0 21.5,-2.5 3.3,-3.2 3.3,-7.8 0,-11 -2.3,-2.4 -2.9,-2.5 -16,-2.5l-13.5,-0 0,-13.5c0,-13.1 -0.1,-13.7 -2.5,-16 -1.5,-1.6 -3.6,-2.5 -5.5,-2.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M114.5,242.5c-2.4,2.3 -2.5,3.1 -2.5,13.5 0,10.4 0.1,11.2 2.5,13.5 1.5,1.6 3.6,2.5 5.5,2.5 1.9,-0 4,-0.9 5.5,-2.5 2.4,-2.3 2.5,-3.1 2.5,-13.5 0,-10.4 -0.1,-11.2 -2.5,-13.5 -1.5,-1.6 -3.6,-2.5 -5.5,-2.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
<path
android:pathData="M210.5,258.5c-5,4.9 -1.5,13.5 5.5,13.5 1.9,-0 4,-0.9 5.5,-2.5 1.6,-1.5 2.5,-3.6 2.5,-5.5 0,-1.9 -0.9,-4 -2.5,-5.5 -1.5,-1.6 -3.6,-2.5 -5.5,-2.5 -1.9,-0 -4,0.9 -5.5,2.5z"
android:fillColor="#FFFFFF"
android:strokeColor="#00000000"/>
</vector>

View File

@ -53,6 +53,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="match_parent"

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
<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"
@ -12,118 +11,15 @@
android:layout_height="match_parent"
android:background="?android:attr/colorBackground">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal"
android:paddingTop="50dp">
<ImageView
android:id="@+id/avatar"
android:layout_width="match_parent"
android:layout_height="150dp"
android:foregroundGravity="center"
android:importantForAccessibility="no"
android:src="@drawable/_user_"
app:layout_constraintBottom_toTopOf="@+id/title"
app:layout_constraintTop_toTopOf="parent" />
<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="280dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center_horizontal">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/fio"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"
android:letterSpacing="0.05"
android:background="?android:attr/colorBackground"
android:textColor="?attr/colorOnBackground"
android:text="fio"/>
<com.google.android.material.textview.MaterialTextView
android:id="@+id/position"
android:padding="15dp"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:letterSpacing="0.05"
android:background="?android:attr/colorBackground"
android:textColor="?attr/colorOnBackground"
android:text="Должность пользователя" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/lastEntry"
android:padding="15dp"
android:layout_marginTop="10dp"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="16sp"
android:letterSpacing="0.05"
android:background="?android:attr/colorBackground"
android:textColor="?attr/colorOnBackground"
android:text="Дата и время последнего входа" />
<com.google.android.material.button.MaterialButton
android:id="@+id/logout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/logout"
android:layout_marginTop="10dp"
android:padding="12dp"
android:textSize="16sp"
android:textColor="@color/white"
app:cornerRadius="8dp"
app:backgroundTint="@color/primary"
app:rippleColor="@color/white"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/scan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/scan"
android:padding="12dp"
android:textSize="16sp"
android:layout_marginTop="10dp"
android:textColor="@color/white"
app:cornerRadius="8dp"
app:backgroundTint="@color/primary"
app:rippleColor="@color/white"/>
<TextView
android:visibility="gone"
android:id="@+id/error"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="0dp"
android:layout_height="0dp"
android:paddingTop="50dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp"
android:gravity="center_horizontal">
<ImageView
android:id="@+id/avatar"
android:layout_width="150dp"
android:layout_height="150dp"
android:contentDescription="@string/avatar"
android:src="@drawable/_user_"
android:scaleType="centerCrop" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/fio"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="24sp"
android:letterSpacing="0.05"
android:textAlignment="center"
android:textColor="?attr/colorOnBackground"
android:layout_marginTop="10dp"
android:text="ФИО пользователя" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/position"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="18sp"
android:letterSpacing="0.05"
android:textAlignment="center"
android:textColor="?attr/colorOnBackground"
android:padding="15dp"
android:layout_marginTop="10dp"
android:text="Должность пользователя" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/lastEntry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="16sp"
android:letterSpacing="0.05"
android:textAlignment="center"
android:textColor="?attr/colorOnBackground"
android:padding="15dp"
android:layout_marginTop="10dp"
android:text="Дата и время последнего входа" />
<com.google.android.material.button.MaterialButton
android:id="@+id/logout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/logout"
android:padding="12dp"
android:textSize="16sp"
android:textColor="@color/white"
android:layout_marginTop="10dp"
app:cornerRadius="8dp"
app:backgroundTint="@color/primary"
app:rippleColor="@color/white" />
<com.google.android.material.button.MaterialButton
android:id="@+id/scan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/scan"
app:icon="@drawable/qr_code_scan"
app:iconGravity="textStart"
android:padding="12dp"
android:textSize="16sp"
android:textColor="@color/white"
android:layout_marginTop="10dp"
app:cornerRadius="8dp"
app:backgroundTint="@color/primary"
app:rippleColor="@color/white" />
<com.google.android.material.button.MaterialButton
android:id="@+id/button_search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/administrator_searc_button_search"
android:padding="12dp"
android:textSize="16sp"
android:textColor="@color/white"
android:layout_marginTop="10dp"
app:cornerRadius="8dp"
app:backgroundTint="@color/primary"
app:rippleColor="@color/white"
android:gravity="center" />
</LinearLayout>