2018-10-03 21:28:23 +02:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
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-03 21:28:23 +02:00
|
|
|
android:id="@+id/grade_subitem_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:paddingStart="12dp"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:paddingLeft="12dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:paddingTop="7dp"
|
|
|
|
android:paddingEnd="12dp"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:paddingRight="12dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:paddingBottom="7dp"
|
|
|
|
tools:context=".ui.modules.grade.details.GradeDetailsItem">
|
2018-10-03 21:28:23 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/gradeItemValue"
|
|
|
|
android:layout_width="45dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_centerVertical="true"
|
2019-03-12 17:34:04 +01:00
|
|
|
android:background="@color/grade_material_default"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:maxLength="5"
|
|
|
|
android:textColor="@color/grade_text"
|
2019-03-03 15:11:20 +01:00
|
|
|
android:textSize="16sp"
|
|
|
|
tools:text="6" />
|
2018-10-03 21:28:23 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/gradeItemDescription"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_marginStart="10dp"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_marginLeft="10dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_marginEnd="20dp"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_marginRight="20dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_toStartOf="@id/gradeItemNote"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_toLeftOf="@id/gradeItemNote"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_toEndOf="@+id/gradeItemValue"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_toRightOf="@+id/gradeItemValue"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="@string/all_description"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/gradeItemDate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignStart="@+id/gradeItemDescription"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_alignLeft="@+id/gradeItemDescription"
|
|
|
|
android:layout_alignBottom="@+id/gradeItemValue"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:text="@string/all_date"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/gradeItemWeight"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignBottom="@+id/gradeItemValue"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_marginStart="10dp"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_marginLeft="10dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_marginEnd="20dp"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_marginRight="20dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_toStartOf="@id/gradeItemNote"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_toLeftOf="@id/gradeItemNote"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:layout_toEndOf="@+id/gradeItemDate"
|
2018-10-03 21:28:23 +02:00
|
|
|
android:layout_toRightOf="@+id/gradeItemDate"
|
|
|
|
android:text="@string/grade_weight"
|
|
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/gradeItemNote"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
app:srcCompat="@drawable/ic_all_round_note_24dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
tools:ignore="contentDescription" />
|
2018-10-03 21:28:23 +02:00
|
|
|
</RelativeLayout>
|