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"
|
|
|
|
tools:context=".ui.modules.attendance.AttendanceItem">
|
2018-03-10 15:55:34 +01:00
|
|
|
|
2018-10-01 19:41:09 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/attendanceItemNumber"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:gravity="center"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:includeFontPadding="false"
|
2018-10-01 19:41:09 +02:00
|
|
|
android:maxLength="2"
|
|
|
|
android:textSize="32sp"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:text="5" />
|
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_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="40dp"
|
|
|
|
android:layout_marginRight="40dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:layout_toStartOf="@id/attendanceItemAlert"
|
|
|
|
android:layout_toLeftOf="@id/attendanceItemAlert"
|
2018-10-01 19:41:09 +02:00
|
|
|
android:layout_toEndOf="@+id/attendanceItemNumber"
|
|
|
|
android:layout_toRightOf="@+id/attendanceItemNumber"
|
|
|
|
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"
|
|
|
|
android:layout_alignLeft="@id/attendanceItemSubject"
|
|
|
|
android:layout_alignBottom="@+id/attendanceItemNumber"
|
|
|
|
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_alignParentRight="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>
|