wulkanowy-mod/app/src/main/res/layout/item_completed_lesson.xml

75 lines
2.9 KiB
XML
Raw Normal View History

2019-02-13 12:21:27 -06:00
<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"
2019-08-26 13:54:20 -05:00
android:foreground="?selectableItemBackground"
android:paddingStart="8dp"
android:paddingLeft="8dp"
android:paddingTop="6dp"
2019-02-13 12:21:27 -06:00
android:paddingEnd="12dp"
android:paddingRight="12dp"
android:paddingBottom="6dp"
2019-08-26 13:54:20 -05:00
tools:context=".ui.modules.timetable.completed.CompletedLessonItem"
tools:ignore="UnusedAttribute">
2019-02-13 12:21:27 -06:00
<TextView
android:id="@+id/completedLessonItemNumber"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:gravity="center"
2019-08-26 13:54:20 -05:00
android:includeFontPadding="false"
2019-02-13 12:21:27 -06:00
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"
2019-02-13 12:21:27 -06:00
android:layout_marginEnd="40dp"
android:layout_marginRight="40dp"
2019-08-26 13:54:20 -05:00
android:layout_toStartOf="@id/completedLessonItemAlert"
android:layout_toLeftOf="@id/completedLessonItemAlert"
2019-02-13 12:21:27 -06:00
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"
2019-08-23 13:37:05 -05:00
android:textColor="?android:textColorSecondary"
2019-02-13 12:21:27 -06:00
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"
2019-08-26 13:54:20 -05:00
app:srcCompat="@drawable/ic_timetable_swap"
2019-02-13 12:21:27 -06:00
tools:ignore="contentDescription" />
</RelativeLayout>