2018-10-01 19:41:09 +02:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-03-10 15:55:34 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-02-14 22:23:52 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-10-01 19:41:09 +02:00
|
|
|
android:id="@+id/attendanceItemContainer"
|
2018-03-10 15:55:34 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:background="?selectableItemBackground"
|
2018-10-01 19:41:09 +02:00
|
|
|
android:paddingStart="12dp"
|
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingTop="7dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:paddingRight="12dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:paddingBottom="7dp"
|
2020-05-01 17:38:19 +02:00
|
|
|
tools:context=".ui.modules.attendance.AttendanceAdapter">
|
2018-03-10 15:55:34 +01:00
|
|
|
|
2020-01-25 18:07:25 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/attendanceItemNumberContainer"
|
2018-10-01 19:41:09 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:gravity="center"
|
2020-01-25 18:07:25 +01:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/attendanceItemNumber"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:maxLength="2"
|
|
|
|
android:textSize="32sp"
|
|
|
|
android:visibility="gone"
|
2020-05-01 17:38:19 +02:00
|
|
|
tools:text="5"
|
|
|
|
tools:visibility="visible" />
|
2020-01-25 18:07:25 +01:00
|
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/attendanceItemExcuseCheckbox"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:text="@null"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/attendanceItemExcuseInfo"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:srcCompat="@drawable/ic_excuse_waiting"
|
|
|
|
app:tint="?attr/colorOnSurface" />
|
|
|
|
</LinearLayout>
|
2018-03-10 15:55:34 +01:00
|
|
|
|
2018-10-01 19:41:09 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/attendanceItemSubject"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="40dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:layout_toStartOf="@id/attendanceItemAlert"
|
2020-01-25 18:07:25 +01:00
|
|
|
android:layout_toEndOf="@+id/attendanceItemNumberContainer"
|
2018-10-01 19:41:09 +02:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="17sp"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:text="Matematyka" />
|
2018-03-10 15:55:34 +01:00
|
|
|
|
2018-10-01 19:41:09 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/attendanceItemDescription"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignStart="@id/attendanceItemSubject"
|
2020-01-25 18:07:25 +01:00
|
|
|
android:layout_alignBottom="@+id/attendanceItemNumberContainer"
|
2018-10-01 19:41:09 +02:00
|
|
|
android:maxLines="1"
|
2019-08-23 18:37:05 +00:00
|
|
|
android:textColor="?android:textColorSecondary"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="Present" />
|
2018-03-10 15:55:34 +01:00
|
|
|
|
2018-10-01 19:41:09 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/attendanceItemAlert"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginTop="10dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
app:srcCompat="@drawable/ic_all_mark"
|
|
|
|
app:tint="?colorPrimary"
|
2019-02-14 22:23:52 +01:00
|
|
|
tools:ignore="contentDescription" />
|
2018-10-01 19:41:09 +02:00
|
|
|
</RelativeLayout>
|