2018-11-14 09:18:00 +01:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-02-14 22:23:52 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-11-14 09:18:00 +01:00
|
|
|
android:id="@+id/homework_subitem_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:background="?selectableItemBackground"
|
2019-02-14 22:23:52 +01:00
|
|
|
tools:context=".ui.modules.homework.HomeworkItem">
|
2018-11-14 09:18:00 +01:00
|
|
|
|
|
|
|
<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"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:textSize="17sp"
|
|
|
|
tools:text="@tools:sample/lorem" />
|
2018-11-14 09:18:00 +01:00
|
|
|
|
|
|
|
<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"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:textSize="13sp"
|
2019-11-24 17:05:09 +01:00
|
|
|
tools:text="@tools:sample/full_names" />
|
2018-11-14 09:18:00 +01:00
|
|
|
|
|
|
|
<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"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:textSize="14sp"
|
2019-11-24 17:05:09 +01:00
|
|
|
tools:text="@tools:sample/lorem" />
|
2018-11-14 09:18:00 +01:00
|
|
|
</RelativeLayout>
|