2018-04-24 21:27:45 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-09-25 22:44:55 +02:00
|
|
|
<LinearLayout 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"
|
|
|
|
android:minHeight="45dp"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:orientation="vertical"
|
2019-04-08 00:18:45 +02:00
|
|
|
tools:context=".ui.modules.timetablewidget.TimetableWidgetFactory">
|
2018-04-24 21:27:45 +02:00
|
|
|
|
2019-09-25 22:44:55 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:background="@android:color/white"
|
|
|
|
android:paddingTop="6dp"
|
|
|
|
android:paddingBottom="6dp"
|
|
|
|
android:paddingLeft="6dp"
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:paddingEnd="12dp"
|
|
|
|
android:paddingRight="12dp">
|
2018-04-24 21:27:45 +02:00
|
|
|
|
2019-09-25 22:44:55 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableWidgetItemNumber"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:gravity="center"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:includeFontPadding="false"
|
|
|
|
android:maxLength="2"
|
|
|
|
android:textSize="28sp"
|
|
|
|
android:textColor="@android:color/black"
|
|
|
|
tools:text="5" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableWidgetItemSubject"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignTop="@id/timetableWidgetItemNumber"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="40dp"
|
|
|
|
android:layout_marginRight="40dp"
|
|
|
|
android:layout_toEndOf="@+id/timetableWidgetItemTimeStart"
|
|
|
|
android:layout_toRightOf="@+id/timetableWidgetItemTimeStart"
|
|
|
|
android:ellipsize="end"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:maxLines="1"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:textSize="15sp"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:textColor="@android:color/black"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="@tools:sample/lorem" />
|
2018-04-24 21:27:45 +02:00
|
|
|
|
2019-09-25 22:44:55 +02:00
|
|
|
<TextView
|
2019-10-03 21:13:01 +02:00
|
|
|
android:id="@+id/timetableWidgetItemTimeStart"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetItemNumber"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetItemNumber"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_alignTop="@id/timetableWidgetItemNumber"
|
|
|
|
android:maxLines="1"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:textColor="@android:color/black"
|
|
|
|
android:textSize="13sp"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="11:11" />
|
2018-04-24 21:27:45 +02:00
|
|
|
|
2019-09-25 22:44:55 +02:00
|
|
|
<TextView
|
2019-10-03 21:13:01 +02:00
|
|
|
android:id="@+id/timetableWidgetItemTimeFinish"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:layout_alignBottom="@+id/timetableWidgetItemNumber"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginLeft="6dp"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetItemNumber"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetItemNumber"
|
|
|
|
android:maxLines="1"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:textColor="@android:color/black"
|
|
|
|
android:textSize="13sp"
|
2019-10-03 21:13:01 +02:00
|
|
|
tools:text="12:00" />
|
2019-09-25 22:44:55 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-10-03 21:13:01 +02:00
|
|
|
android:id="@+id/timetableWidgetItemRoom"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:layout_alignBottom="@+id/timetableWidgetItemNumber"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_toEndOf="@+id/timetableWidgetItemTimeStart"
|
|
|
|
android:layout_toRightOf="@+id/timetableWidgetItemTimeStart"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/black"
|
|
|
|
android:textSize="13sp"
|
|
|
|
tools:text="22"
|
|
|
|
tools:visibility="visible" />
|
2019-09-25 22:44:55 +02:00
|
|
|
|
|
|
|
<TextView
|
2019-10-03 21:13:01 +02:00
|
|
|
android:id="@+id/timetableWidgetItemTeacher"
|
2019-09-25 22:44:55 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2019-10-03 21:13:01 +02:00
|
|
|
android:layout_alignBottom="@+id/timetableWidgetItemNumber"
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetItemRoom"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetItemRoom"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@color/timetable_change_dark"
|
|
|
|
android:textSize="13sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="Agata Kowalska - Błaszczyk"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableWidgetItemDescription"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignTop="@+id/timetableWidgetItemTimeFinish"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
android:layout_toEndOf="@+id/timetableWidgetItemTimeStart"
|
|
|
|
android:layout_toRightOf="@+id/timetableWidgetItemTimeStart"
|
|
|
|
android:textColor="@color/timetable_change_dark"
|
|
|
|
android:textSize="13sp"
|
|
|
|
tools:text="Lekcja odwołana: uczniowie zwolnieni do domu"
|
|
|
|
tools:visibility="gone"/>
|
2019-09-25 22:44:55 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="@color/colorDivider" />
|
|
|
|
</LinearLayout>
|