85 lines
3.3 KiB
XML
Raw Normal View History

2020-03-29 14:26:56 +02:00
<androidx.constraintlayout.widget.ConstraintLayout 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"
2018-11-11 17:45:58 +01:00
android:id="@+id/note_subitem_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-08-26 20:54:20 +02:00
android:background="?selectableItemBackground"
2020-05-01 17:38:19 +02:00
tools:context=".ui.modules.note.NoteAdapter">
2018-11-11 17:45:58 +01:00
<TextView
android:id="@+id/noteItemDate"
2020-03-29 14:26:56 +02:00
android:layout_width="0dp"
2018-11-11 17:45:58 +01:00
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginTop="10dp"
2020-03-29 14:26:56 +02:00
android:textColor="?android:textColorSecondary"
2019-08-26 20:54:20 +02:00
android:textSize="15sp"
2020-03-29 14:26:56 +02:00
app:layout_constraintRight_toLeftOf="@+id/noteItemTeacher"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2019-08-26 20:54:20 +02:00
tools:text="@tools:sample/date/ddmmyy" />
2018-11-11 17:45:58 +01:00
<TextView
android:id="@+id/noteItemTeacher"
2020-03-29 14:26:56 +02:00
android:layout_width="0dp"
2018-11-11 17:45:58 +01:00
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="15dp"
2020-03-29 14:26:56 +02:00
android:ellipsize="end"
2018-11-11 17:45:58 +01:00
android:gravity="end"
2020-03-29 14:26:56 +02:00
android:singleLine="true"
2019-08-26 20:54:20 +02:00
android:textSize="13sp"
2020-03-29 14:26:56 +02:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/noteItemDate"
app:layout_constraintTop_toTopOf="parent"
2019-08-26 20:54:20 +02:00
tools:text="@tools:sample/full_names" />
2018-11-11 17:45:58 +01:00
<TextView
android:id="@+id/noteItemType"
2020-03-29 14:26:56 +02:00
android:layout_width="0dp"
2018-11-11 17:45:58 +01:00
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
2020-03-29 14:26:56 +02:00
android:layout_marginEnd="10dp"
2018-11-11 17:45:58 +01:00
android:layout_marginBottom="5dp"
2020-03-29 14:26:56 +02:00
android:ellipsize="end"
android:maxLines="2"
android:textSize="16sp"
app:layout_constraintLeft_toLeftOf="@id/noteItemDate"
app:layout_constraintRight_toLeftOf="@id/noteItemPoints"
app:layout_constraintTop_toBottomOf="@id/noteItemDate"
app:layout_goneMarginEnd="0dp"
2019-08-26 20:54:20 +02:00
tools:text="@tools:sample/lorem" />
2018-11-11 17:45:58 +01:00
2020-03-29 14:26:56 +02:00
<TextView
android:id="@+id/noteItemPoints"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:textSize="16sp"
android:textStyle="bold"
android:visibility="gone"
app:layout_constraintRight_toRightOf="@id/noteItemTeacher"
app:layout_constraintTop_toBottomOf="@id/noteItemTeacher"
tools:text="-5"
tools:textColor="@color/note_positive"
tools:visibility="visible" />
2018-11-11 17:45:58 +01:00
<TextView
android:id="@+id/noteItemContent"
2020-03-29 14:26:56 +02:00
android:layout_width="0dp"
2018-11-11 17:45:58 +01:00
android:layout_height="wrap_content"
2020-03-29 14:26:56 +02:00
android:layout_marginTop="5dp"
2018-11-11 17:45:58 +01:00
android:layout_marginBottom="15dp"
2020-03-29 14:26:56 +02:00
android:ellipsize="end"
2018-11-11 17:45:58 +01:00
android:lineSpacingMultiplier="1.2"
2020-03-29 14:26:56 +02:00
android:maxLines="2"
2019-08-26 20:54:20 +02:00
android:textSize="14sp"
2020-03-29 14:26:56 +02:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="@id/noteItemDate"
app:layout_constraintRight_toRightOf="@+id/noteItemTeacher"
app:layout_constraintTop_toBottomOf="@id/noteItemType"
2019-08-26 20:54:20 +02:00
tools:text="@tools:sample/lorem/random" />
2020-03-29 14:26:56 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>