167 lines
7.1 KiB
XML
167 lines
7.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView 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">
|
|
|
|
<!-- <ProgressBar-->
|
|
<!-- android:id="@+id/loading"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:visibility="gone"-->
|
|
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/dashboard"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
android:visibility="visible">
|
|
|
|
<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"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_login"
|
|
style="@style/Theme.UiTemplate.TextH1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginBottom="10dp"
|
|
android:gravity="center"
|
|
android:padding="35dp"
|
|
android:text="@string/admin_main" />
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/input_username"
|
|
style="@style/Theme.UiTemplate.Input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="58dp"
|
|
android:layout_marginTop="45dp"
|
|
app:errorEnabled="false"
|
|
app:layout_constraintWidth_max="400dp"
|
|
app:layout_constraintWidth_percent="0.8">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/username"
|
|
style="@style/Theme.UiTemplate.Input.Text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:hint="@string/admin_input_hint"
|
|
android:inputType="text"
|
|
android:maxLines="1"></com.google.android.material.textfield.TextInputEditText>
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<Button
|
|
android:id="@+id/login"
|
|
style="@style/Theme.UiTemplate.Button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/admin_button" />
|
|
|
|
<TextView
|
|
android:id="@+id/error"
|
|
style="@style/Theme.UiTemplate.TextH4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:textColor="@color/ErrorRed"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/cardViewUser"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="16dp"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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_gravity="center"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_marginTop="16dp"
|
|
tools:text="@tools:sample/date/hhmm" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/block"
|
|
style="@style/Theme.UiTemplate.OutlineButton.Error"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginTop="50dp"
|
|
android:text="@string/admin_block" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView> |