2018-04-24 21:27:45 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-12-14 22:36:21 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:id="@+id/timetableWidgetItemContainer"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:background="@drawable/ic_all_divider"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:minHeight="45dp"
|
2019-03-11 20:56:47 +01:00
|
|
|
android:orientation="horizontal"
|
2019-04-08 00:18:45 +02:00
|
|
|
tools:context=".ui.modules.timetablewidget.TimetableWidgetFactory">
|
2018-04-24 21:27:45 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 17:38:20 +01:00
|
|
|
android:id="@+id/timetableWidgetItemNumber"
|
2018-12-14 22:36:21 +01:00
|
|
|
android:layout_width="45dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_height="45dp"
|
2018-12-14 22:36:21 +01:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:gravity="center"
|
2018-12-14 22:36:21 +01:00
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/black"
|
|
|
|
android:textSize="25sp"
|
2019-03-11 20:56:47 +01:00
|
|
|
tools:text="1" />
|
2018-11-02 17:38:20 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableWidgetItemTime"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
2018-12-14 22:36:21 +01:00
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
|
|
|
android:layout_marginTop="10dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_toEndOf="@id/timetableWidgetItemNumber"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetItemNumber"
|
2019-02-17 00:42:09 +01:00
|
|
|
android:textColor="@android:color/secondary_text_light"
|
2019-03-11 20:56:47 +01:00
|
|
|
android:textSize="13sp"
|
|
|
|
tools:text="08:00 - 08:45" />
|
2018-04-24 21:27:45 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 17:38:20 +01:00
|
|
|
android:id="@+id/timetableWidgetItemSubject"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="15dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_marginLeft="15dp"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_marginTop="5dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_marginEnd="25dp"
|
|
|
|
android:layout_marginRight="25dp"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetItemTime"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetItemTime"
|
2019-02-17 00:42:09 +01:00
|
|
|
android:textColor="@android:color/secondary_text_light"
|
2019-03-11 20:56:47 +01:00
|
|
|
android:textSize="13sp"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:text="@tools:sample/lorem" />
|
2018-04-24 21:27:45 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 17:38:20 +01:00
|
|
|
android:id="@+id/timetableWidgetItemDescription"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_below="@id/timetableWidgetItemSubject"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_marginStart="15dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_marginLeft="15dp"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_marginTop="3dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_marginEnd="25dp"
|
|
|
|
android:layout_marginRight="25dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetItemTime"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetItemTime"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:textColor="@color/colorPrimaryDark"
|
2019-03-11 20:56:47 +01:00
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="Lekcja odwołana: uczniowie zwolnieni do domu" />
|
2018-04-24 21:27:45 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 17:38:20 +01:00
|
|
|
android:id="@+id/timetableWidgetItemRoom"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_below="@id/timetableWidgetItemTime"
|
2018-12-14 22:36:21 +01:00
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_marginTop="3dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetItemNumber"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetItemNumber"
|
2019-02-17 00:42:09 +01:00
|
|
|
android:textColor="@android:color/secondary_text_light"
|
2019-03-11 20:56:47 +01:00
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="Sala 25" />
|
2018-08-26 00:18:31 +02:00
|
|
|
</RelativeLayout>
|