mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-03-17 16:13:59 +01:00
86 lines
3.1 KiB
XML
86 lines
3.1 KiB
XML
<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:id="@+id/attendanceItemContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?selectableItemBackground"
|
|
android:paddingStart="12dp"
|
|
android:paddingLeft="12dp"
|
|
android:paddingTop="7dp"
|
|
android:paddingEnd="12dp"
|
|
android:paddingRight="12dp"
|
|
android:paddingBottom="7dp"
|
|
tools:context=".ui.modules.attendance.AttendanceAdapter">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/attendanceItemNumberContainer"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:gravity="center"
|
|
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"
|
|
tools:text="5"
|
|
tools:visibility="visible" />
|
|
|
|
<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>
|
|
|
|
<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"
|
|
android:layout_toStartOf="@id/attendanceItemAlert"
|
|
android:layout_toEndOf="@+id/attendanceItemNumberContainer"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textSize="17sp"
|
|
tools:text="Matematyka" />
|
|
|
|
<TextView
|
|
android:id="@+id/attendanceItemDescription"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignStart="@id/attendanceItemSubject"
|
|
android:layout_alignBottom="@+id/attendanceItemNumberContainer"
|
|
android:maxLines="1"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="12sp"
|
|
tools:text="Present" />
|
|
|
|
<ImageView
|
|
android:id="@+id/attendanceItemAlert"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginTop="10dp"
|
|
app:srcCompat="@drawable/ic_all_mark"
|
|
app:tint="?colorPrimary"
|
|
tools:ignore="contentDescription" />
|
|
</RelativeLayout>
|