wulkanowy-mod/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:tool="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"
2018-10-14 15:16:58 -05:00
android:background="@drawable/ic_all_divider"
android:foreground="?attr/selectableItemBackgroundBorderless"
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"
2018-10-14 15:16:58 -05:00
android:paddingBottom="7dp">
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"
tool: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"
tool: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"
android:textColor="?android:attr/android:textColorSecondary"
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"
android:textColor="?android:attr/android:textColorSecondary"
android:textSize="12sp"
tool: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"
tool:ignore="contentDescription" />
2018-10-06 03:53:34 -05:00
</RelativeLayout>