wulkanowy-mod/app/src/main/res/layout/item_widget_timetable.xml

86 lines
3.4 KiB
XML
Raw Normal View History

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