2018-10-06 03:53:34 -05:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-12-11 12:45:28 -06:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-02-14 15:23:52 -06:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-12-11 12:45:28 -06:00
|
|
|
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"
|
2019-02-14 15:23:52 -06:00
|
|
|
android:paddingBottom="7dp"
|
|
|
|
tools:context=".ui.modules.timetable.TimetableItem">
|
2017-12-11 12:45:28 -06:00
|
|
|
|
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" />
|
2017-12-11 12:45:28 -06:00
|
|
|
|
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" />
|
2017-12-11 12:45:28 -06:00
|
|
|
|
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" />
|
2017-12-11 12:45:28 -06: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" />
|
2017-12-11 12:45:28 -06:00
|
|
|
|
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"
|
2019-02-14 15:23:52 -06:00
|
|
|
tools:ignore="contentDescription" />
|
2018-10-06 03:53:34 -05:00
|
|
|
</RelativeLayout>
|