wulkanowy-mod/app/src/main/res/layout/item_completed_lesson.xml
2019-10-03 21:13:01 +02:00

75 lines
2.9 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:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ic_all_divider"
android:foreground="?selectableItemBackground"
android:paddingStart="8dp"
android:paddingLeft="8dp"
android:paddingTop="6dp"
android:paddingEnd="12dp"
android:paddingRight="12dp"
android:paddingBottom="6dp"
tools:context=".ui.modules.timetable.completed.CompletedLessonItem"
tools:ignore="UnusedAttribute">
<TextView
android:id="@+id/completedLessonItemNumber"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:gravity="center"
android:includeFontPadding="false"
android:maxLength="2"
android:textSize="32sp"
tools:ignore="all"
tools:text="1" />
<TextView
android:id="@+id/completedLessonItemSubject"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginEnd="40dp"
android:layout_marginRight="40dp"
android:layout_toStartOf="@id/completedLessonItemAlert"
android:layout_toLeftOf="@id/completedLessonItemAlert"
android:layout_toEndOf="@+id/completedLessonItemNumber"
android:layout_toRightOf="@+id/completedLessonItemNumber"
android:ellipsize="end"
android:maxLines="1"
android:textSize="17sp"
tools:text="@tools:sample/lorem" />
<TextView
android:id="@+id/completedLessonItemTopic"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignStart="@id/completedLessonItemSubject"
android:layout_alignLeft="@id/completedLessonItemSubject"
android:layout_alignEnd="@+id/completedLessonItemAlert"
android:layout_alignRight="@+id/completedLessonItemAlert"
android:layout_alignBottom="@+id/completedLessonItemNumber"
android:layout_marginEnd="40dp"
android:layout_marginRight="40dp"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
android:textSize="12sp"
tools:text="@tools:sample/lorem" />
<ImageView
android:id="@+id/completedLessonItemAlert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:tint="?colorTimetableChange"
app:srcCompat="@drawable/ic_timetable_swap"
tools:ignore="contentDescription" />
</RelativeLayout>