<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/homework_subitem_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?selectableItemBackground"
    tools:context=".ui.modules.homework.HomeworkItem">

    <TextView
        android:id="@+id/homeworkItemSubject"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="15dp"
        android:layout_marginLeft="15dp"
        android:layout_marginTop="10dp"
        android:layout_marginBottom="5dp"
        android:textSize="17sp"
        tools:text="@tools:sample/lorem" />

    <TextView
        android:id="@+id/homeworkItemTeacher"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"
        android:layout_marginStart="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginTop="10dp"
        android:layout_marginEnd="15dp"
        android:layout_marginRight="15dp"
        android:layout_toEndOf="@id/homeworkItemSubject"
        android:layout_toRightOf="@id/homeworkItemSubject"
        android:gravity="end"
        android:textSize="13sp"
        tools:text="@tools:sample/lorem" />

    <TextView
        android:id="@+id/homeworkItemContent"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/homeworkItemSubject"
        android:layout_alignStart="@id/homeworkItemSubject"
        android:layout_alignLeft="@id/homeworkItemSubject"
        android:layout_marginEnd="15dp"
        android:layout_marginRight="15dp"
        android:layout_marginBottom="15dp"
        android:lineSpacingMultiplier="1.2"
        android:textSize="14sp"
        tools:text="@tools:sample/lorem/random" />
</RelativeLayout>
