new screen for admin with worker's information
This commit is contained in:
parent
f1ee6061ce
commit
4fb96e6a9c
90
app/src/main/res/layout/fragment_information_admin.xml
Normal file
90
app/src/main/res/layout/fragment_information_admin.xml
Normal file
@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:padding="16dp"
|
||||
android:orientation="vertical"
|
||||
android:layout_height="match_parent">
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/floatingActionButton2"
|
||||
style="@style/Theme.UiTemplate.FAB.Gray"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:src="@drawable/ic_back" />
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="120dp"
|
||||
android:layout_gravity="center"
|
||||
android:orientation="horizontal">
|
||||
<androidx.cardview.widget.CardView
|
||||
android:id="@+id/photo2"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_margin="5dp"
|
||||
android:elevation="10dp"
|
||||
app:cardCornerRadius="12dp">
|
||||
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/photo"
|
||||
style="@style/roundedImageView"
|
||||
android:layout_width="120dp"
|
||||
android:layout_height="120dp"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:contentDescription="@null"
|
||||
tools:src="@tools:sample/avatars" />
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/fullname"
|
||||
style="@style/Theme.UiTemplate.TextH3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:textAlignment="center"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/photo2"
|
||||
tools:text="@tools:sample/full_names" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/position"
|
||||
style="@style/Theme.UiTemplate.TextH4"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="16dp"
|
||||
tools:text="@tools:sample/cities" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/lastEntry"
|
||||
style="@style/Theme.UiTemplate.TextH4_2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_gravity="center"
|
||||
tools:text="@tools:sample/date/hhmm" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<Button
|
||||
android:id="@+id/login"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/Theme.UiTemplate.OutlineButton.Error"
|
||||
android:layout_marginTop="100dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="@string/admin_block" />
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
20
app/src/main/res/values/outline_button_style.xml
Normal file
20
app/src/main/res/values/outline_button_style.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Theme.UiTemplate.OutlineButton" parent="Theme.UiTemplate.Button">
|
||||
<item name="android:backgroundTint">@color/BackgroundGray</item>
|
||||
<item name="android:textColor">@color/TextBlack</item>
|
||||
</style>
|
||||
<!-- Outline Error Button-->
|
||||
<style name="Theme.UiTemplate.OutlineButton.Error" parent="Theme.UiTemplate.OutlineButton">
|
||||
<item name="android:textColor">@color/ErrorRed</item>
|
||||
</style>
|
||||
<style name="Theme.UiTemplate.ErrorButton" parent="Theme.UiTemplate.Button">
|
||||
<item name="android:backgroundTint">@color/ErrorRed</item>
|
||||
<item name="android:textColor">@color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="Theme.UiTemplate.OutlineButton.Gray" parent="Theme.UiTemplate.Button">
|
||||
<item name="android:backgroundTint">@color/BackgroundGray</item>
|
||||
<item name="android:textColor">@color/Gray5</item>
|
||||
</style>
|
||||
</resources>
|
@ -3,4 +3,5 @@
|
||||
<string name="admin_main">Check workers’ information</string>
|
||||
<string name="admin_input_hint">Enter worker’s login</string>
|
||||
<string name="admin_button">Check out</string>
|
||||
<string name="admin_block">Block access</string>
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user