RecyclerView repair
This commit is contained in:
parent
05d27f3cfe
commit
7162147094
115
app/src/main/res/drawable/qr_code_scan.xml
Normal file
115
app/src/main/res/drawable/qr_code_scan.xml
Normal 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>
|
@ -53,6 +53,7 @@
|
|||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"/>
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/textInputLayout"
|
android:id="@+id/textInputLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -11,7 +11,19 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="?android:attr/colorBackground">
|
android:background="?android:attr/colorBackground">
|
||||||
|
<TextView
|
||||||
|
android:padding="15dp"
|
||||||
|
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
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
@ -21,6 +33,7 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/avatar"
|
android:id="@+id/avatar"
|
||||||
|
android:layout_marginTop="10dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="150dp"
|
android:layout_height="150dp"
|
||||||
android:foregroundGravity="center"
|
android:foregroundGravity="center"
|
||||||
@ -60,7 +73,7 @@
|
|||||||
android:letterSpacing="0.05"
|
android:letterSpacing="0.05"
|
||||||
android:background="?android:attr/colorBackground"
|
android:background="?android:attr/colorBackground"
|
||||||
android:textColor="?attr/colorOnBackground"
|
android:textColor="?attr/colorOnBackground"
|
||||||
android:text="fio"/>
|
android:text="Name"/>
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:id="@+id/position"
|
android:id="@+id/position"
|
||||||
@ -76,19 +89,8 @@
|
|||||||
android:textColor="?attr/colorOnBackground"
|
android:textColor="?attr/colorOnBackground"
|
||||||
android:text="Должность пользователя" />
|
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
|
<com.google.android.material.button.MaterialButton
|
||||||
android:id="@+id/logout"
|
android:id="@+id/logout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -107,6 +109,8 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/scan"
|
android:text="@string/scan"
|
||||||
|
app:icon="@drawable/qr_code_scan"
|
||||||
|
app:iconGravity="textStart"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
@ -115,12 +119,36 @@
|
|||||||
app:cornerRadius="8dp"
|
app:cornerRadius="8dp"
|
||||||
app:backgroundTint="@color/primary"
|
app:backgroundTint="@color/primary"
|
||||||
app:rippleColor="@color/white"/>
|
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:layout_marginTop="10dp"
|
||||||
|
|
||||||
|
|
||||||
|
android:textColor="@color/white"
|
||||||
|
app:cornerRadius="8dp"
|
||||||
|
app:backgroundTint="@color/primary"
|
||||||
|
app:rippleColor="@color/white"
|
||||||
|
android:gravity="center"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:id="@+id/error"
|
android:id="@+id/error"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
|
android:id="@+id/recyclerViewLogs"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
tools:listitem="@layout/item_scanner_view"
|
||||||
|
android:padding="16dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
39
app/src/main/res/layout/item_scanner_view.xml
Normal file
39
app/src/main/res/layout/item_scanner_view.xml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="16dp">
|
||||||
|
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/scanTime"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textColor="?attr/colorOnBackground"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:text="Время сканирования: 12:34" />
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/scannerId"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textColor="?attr/colorOnBackground"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:text="Считыватель: ID_12345" />
|
||||||
|
|
||||||
|
|
||||||
|
<com.google.android.material.textview.MaterialTextView
|
||||||
|
android:id="@+id/passType"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textColor="?attr/colorOnBackground"
|
||||||
|
android:textAlignment="center"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:text="Тип прохода: Карта" />
|
||||||
|
</LinearLayout>
|
@ -16,4 +16,5 @@
|
|||||||
<string name="error">Error</string>
|
<string name="error">Error</string>
|
||||||
<string name="administrator_search">Enter the username</string>
|
<string name="administrator_search">Enter the username</string>
|
||||||
<string name="administrator_searc_button_search">🔍 Search 🔍</string>
|
<string name="administrator_searc_button_search">🔍 Search 🔍</string>
|
||||||
|
<string name="title_profile">Your profile</string>
|
||||||
</resources>
|
</resources>
|
@ -17,5 +17,5 @@
|
|||||||
<string name="error">Ошибка</string>
|
<string name="error">Ошибка</string>
|
||||||
<string name="administrator_search">Введите логин пользователя</string>
|
<string name="administrator_search">Введите логин пользователя</string>
|
||||||
<string name="administrator_searc_button_search">🔍 Поиск 🔍</string>
|
<string name="administrator_searc_button_search">🔍 Поиск 🔍</string>
|
||||||
|
<string name="title_profile">Профиль</string>
|
||||||
</resources>
|
</resources>
|
@ -16,4 +16,5 @@
|
|||||||
<string name="error">Error</string>
|
<string name="error">Error</string>
|
||||||
<string name="administrator_search">Enter the username</string>
|
<string name="administrator_search">Enter the username</string>
|
||||||
<string name="administrator_searc_button_search">🔍 Search 🔍</string>
|
<string name="administrator_searc_button_search">🔍 Search 🔍</string>
|
||||||
|
<string name="title_profile">Your profile</string>
|
||||||
</resources>
|
</resources>
|
Loading…
x
Reference in New Issue
Block a user