<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray2"
tools:context=".fragments.TimekeepingFragment">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_header"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@drawable/background_cus">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_type_post"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/timesheets"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.cardview.widget.CardView
android:id="@+id/cv_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_header"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="20dp"
android:backgroundTint="@color/white"
app:cardCornerRadius="10dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_header"
android:padding="20dp">
<TextView
android:id="@+id/txt_title1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/time"
android:textColor="@color/black"
android:textSize="18sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Spinner
android:id="@+id/edt_username"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:paddingHorizontal="10dp"
android:paddingVertical="10dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/txt_title1" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<ScrollView
android:id="@+id/sc_view"
android:layout_marginTop="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/cv_username">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
android:id="@+id/cv_table_summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:backgroundTint="@color/white"
app:cardCornerRadius="10dp">
<RelativeLayout
android:id="@+id/layout_table_summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_header"
android:padding="20dp">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_working_day"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/txt_title2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/number_of_working_days"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/txt_number_of_working_days"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="10"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_wage_of_day"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_working_day"
android:layout_marginTop="15dp">
<TextView
android:id="@+id/txt_title3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wage"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/txt_wage_of_day"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1.000.000 VND"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_wage_of_month"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_wage_of_day"
android:layout_marginTop="15dp">
<TextView
android:id="@+id/txt_title4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/wage_of_month"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/txt_wage_of_month"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="10.000.000 VND"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_number_of_times_late"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_wage_of_month"
android:layout_marginTop="15dp">
<TextView
android:id="@+id/txt_title5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/number_of_times_late"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/txt_number_of_times_late"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_some_holidays"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_number_of_times_late"
android:layout_marginTop="15dp">
<TextView
android:id="@+id/txt_title6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/some_holidays"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/txt_some_holidays"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="20"
android:textColor="@color/black"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</RelativeLayout>
</androidx.cardview.widget.CardView>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_title_table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/cv_table_summary"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="20dp"
android:background="@drawable/botron_layout_title"
android:padding="10dp">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_day_of_week"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="25dp"
android:text="Ngày"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_day_of_week_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Thứ"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/txt_work_day"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="15dp"
android:text="Công"
android:textColor="@color/white"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rcv_list_month"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/layout_title_table"
android:layout_marginHorizontal="20dp" />
</RelativeLayout>
</ScrollView>
</RelativeLayout>