2018-04-24 14:27:45 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-03-11 14:56:47 -05:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-03-11 14:56:47 -05:00
|
|
|
android:background="@android:color/white"
|
|
|
|
tools:context=".ui.widgets.timetable.TimetableWidgetProvider">
|
2018-04-24 14:27:45 -05:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2018-10-03 14:28:23 -05:00
|
|
|
android:layout_height="@dimen/timetable_widget_bar_height"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:background="@color/colorPrimary">
|
|
|
|
|
2018-11-02 11:38:20 -05:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/timetableWidgetPrev"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginLeft="5dp"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:backgroundTint="@color/colorPrimaryDark"
|
2018-11-02 11:38:20 -05:00
|
|
|
android:contentDescription="@string/all_prev"
|
2019-03-11 14:56:47 -05:00
|
|
|
android:src="@drawable/ic_widget_chevron_24dp"
|
|
|
|
tools:targetApi="lollipop" />
|
2018-04-24 14:27:45 -05:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 11:38:20 -05:00
|
|
|
android:id="@+id/timetableWidgetDay"
|
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_alignTop="@+id/timetableWidgetPrev"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_toStartOf="@id/timetableWidgetNext"
|
|
|
|
android:layout_toLeftOf="@id/timetableWidgetNext"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetPrev"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetPrev"
|
|
|
|
android:gravity="center_horizontal"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/white"
|
2019-03-11 14:56:47 -05:00
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="Poniedziałek" />
|
2018-04-24 14:27:45 -05:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 11:38:20 -05:00
|
|
|
android:id="@+id/timetableWidgetDate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/timetableWidgetDay"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_toStartOf="@id/timetableWidgetNext"
|
|
|
|
android:layout_toLeftOf="@id/timetableWidgetNext"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetPrev"
|
|
|
|
android:layout_toRightOf="@id/timetableWidgetPrev"
|
|
|
|
android:gravity="center_horizontal"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/white"
|
2019-03-11 14:56:47 -05:00
|
|
|
android:textSize="14sp"
|
|
|
|
tools:text="12.03.2019" />
|
2018-11-02 11:38:20 -05:00
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/timetableWidgetNext"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_marginRight="5dp"
|
|
|
|
android:backgroundTint="@color/colorPrimaryDark"
|
|
|
|
android:contentDescription="@string/all_next"
|
|
|
|
android:rotation="180"
|
2019-03-11 14:56:47 -05:00
|
|
|
android:src="@drawable/ic_widget_chevron_24dp"
|
|
|
|
tools:targetApi="lollipop" />
|
2018-11-02 11:38:20 -05:00
|
|
|
|
2018-04-24 14:27:45 -05:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<ListView
|
2018-11-02 11:38:20 -05:00
|
|
|
android:id="@+id/timetableWidgetList"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-03-11 14:56:47 -05:00
|
|
|
android:layout_marginTop="@dimen/timetable_widget_bar_height"
|
|
|
|
tools:listitem="@layout/item_widget_timetable" />
|
2018-04-24 14:27:45 -05:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 11:38:20 -05:00
|
|
|
android:id="@+id/timetableWidgetEmpty"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2018-08-25 17:18:31 -05:00
|
|
|
android:text="@string/widget_timetable_no_items"
|
2018-04-24 14:27:45 -05:00
|
|
|
android:textColor="@android:color/black"
|
2019-03-11 14:56:47 -05:00
|
|
|
android:textSize="20sp"
|
|
|
|
tools:visibility="invisible" />
|
2018-06-14 04:40:46 -05:00
|
|
|
</FrameLayout>
|