1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-21 07:19:09 -05:00
wulkanowy-mirror/app/src/main/res/layout/item_timetable.xml

84 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"
2018-10-06 03:53:34 -05:00
android:id="@+id/timetable_subitem_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/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"
android:maxLength="2"
android:text="0"
android:textSize="32sp"
tools:ignore="all" />
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:text="@string/app_name"
android:textSize="17sp"
tools:ignore="RelativeOverlap" />
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"
android:text="@string/app_name"
2019-08-23 13:37:05 -05:00
android:textColor="?android:textColorSecondary"
2018-10-06 03:53:34 -05:00
android:textSize="12sp" />
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"
android:layout_toEndOf="@+id/timetableItemTime"
android:layout_toRightOf="@+id/timetableItemTime"
android:maxLines="1"
android:text="@string/app_name"
2019-08-23 13:37:05 -05:00
android:textColor="?android:textColorSecondary"
2018-10-06 03:53:34 -05:00
android:textSize="12sp"
tools:ignore="RelativeOverlap" />
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"
app:srcCompat="@drawable/ic_timetable_swap_30dp"
tools:ignore="contentDescription" />
2018-10-06 03:53:34 -05:00
</RelativeLayout>