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

83 lines
3.1 KiB
XML
Raw Normal View History

2018-10-06 03:53:34 -05: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"
2019-08-26 13:54:20 -05:00
android:background="?selectableItemBackground"
2018-10-14 15:16:58 -05:00
android:paddingStart="12dp"
2018-10-06 03:53:34 -05:00
android:paddingLeft="12dp"
2018-10-14 15:16:58 -05:00
android:paddingTop="7dp"
android:paddingEnd="12dp"
2018-10-06 03:53:34 -05:00
android:paddingRight="12dp"
android:paddingBottom="7dp"
tools:context=".ui.modules.timetable.TimetableItem">
2018-10-06 03:53:34 -05:00
<TextView
android:id="@+id/timetableItemNumber"
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"
2018-10-06 03:53:34 -05:00
android:maxLength="2"
android:textSize="32sp"
2019-08-26 13:54:20 -05:00
tools:text="5" />
2018-10-06 03:53:34 -05:00
<TextView
android:id="@+id/timetableItemSubject"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
2018-10-14 15:16:58 -05:00
android:layout_marginStart="10dp"
2018-10-06 03:53:34 -05:00
android:layout_marginLeft="10dp"
2018-10-14 15:16:58 -05:00
android:layout_marginEnd="40dp"
2018-10-06 03:53:34 -05:00
android:layout_marginRight="40dp"
android:layout_toEndOf="@+id/timetableItemNumber"
android:layout_toRightOf="@+id/timetableItemNumber"
android:ellipsize="end"
android:maxLines="1"
android:textSize="17sp"
2019-08-26 13:54:20 -05:00
tools:text="@tools:sample/lorem" />
2018-10-06 03:53:34 -05:00
<TextView
android:id="@+id/timetableItemTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignStart="@id/timetableItemSubject"
2018-10-14 15:16:58 -05:00
android:layout_alignLeft="@id/timetableItemSubject"
android:layout_alignBottom="@+id/timetableItemNumber"
2018-10-06 03:53:34 -05:00
android:maxLines="1"
2019-08-23 13:37:05 -05:00
android:textColor="?android:textColorSecondary"
2019-08-26 13:54:20 -05:00
android:textSize="12sp"
tools:text="11:11-12:00" />
2018-10-06 03:53:34 -05:00
<TextView
android:id="@+id/timetableItemRoom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/timetableItemNumber"
2018-10-14 15:16:58 -05:00
android:layout_marginStart="10dp"
2018-10-06 03:53:34 -05:00
android:layout_marginLeft="10dp"
2018-10-14 15:16:58 -05:00
android:layout_marginEnd="40dp"
2018-10-06 03:53:34 -05:00
android:layout_marginRight="40dp"
2019-08-26 13:54:20 -05:00
android:layout_toStartOf="@id/timetableItemAlert"
android:layout_toLeftOf="@id/timetableItemAlert"
2018-10-06 03:53:34 -05:00
android:layout_toEndOf="@+id/timetableItemTime"
android:layout_toRightOf="@+id/timetableItemTime"
android:maxLines="1"
2019-08-23 13:37:05 -05:00
android:textColor="?android:textColorSecondary"
2018-10-06 03:53:34 -05:00
android:textSize="12sp"
2019-08-26 13:54:20 -05:00
tools:text="Room 22" />
2018-10-06 03:53:34 -05:00
<ImageView
android:id="@+id/timetableItemAlert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_marginTop="10dp"
2019-08-26 13:54:20 -05:00
app:srcCompat="@drawable/ic_timetable_swap"
app:tint="?colorPrimary"
tools:ignore="contentDescription" />
2018-10-06 03:53:34 -05:00
</RelativeLayout>