2018-04-24 21:27:45 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-03-11 20:56:47 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-08-23 18:02:21 +02:00
|
|
|
android:background="@drawable/background_widget_timetable"
|
2019-04-08 00:18:45 +02:00
|
|
|
tools:context=".ui.modules.timetablewidget.TimetableWidgetProvider">
|
2018-04-24 21:27:45 +02:00
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2019-04-08 00:18:45 +02:00
|
|
|
android:layout_height="56dp"
|
2021-08-23 18:02:21 +02:00
|
|
|
android:background="@drawable/background_widget_header_timetable">
|
2018-04-24 21:27:45 +02:00
|
|
|
|
2019-04-08 00:18:45 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toStartOf="@id/timetableWidgetAccount"
|
|
|
|
android:layout_toEndOf="@id/timetableWidgetNext"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableWidgetDate"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="Pon. 30.03.2019" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timetableWidgetName"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="13sp"
|
|
|
|
tools:text="Jan Kowalski" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/timetableWidgetAccount"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_alignParentEnd="true"
|
2021-08-23 18:02:21 +02:00
|
|
|
android:layout_marginEnd="4dp"
|
2019-04-08 00:18:45 +02:00
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:contentDescription="@string/account_title"
|
|
|
|
android:src="@drawable/ic_widget_account" />
|
|
|
|
|
2018-11-02 17:38:20 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/timetableWidgetPrev"
|
2019-04-08 00:18:45 +02:00
|
|
|
android:layout_width="50dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
2019-04-08 00:18:45 +02:00
|
|
|
android:layout_marginStart="10dp"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:backgroundTint="@color/colorPrimaryDark"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:contentDescription="@string/all_prev"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:src="@drawable/ic_widget_chevron"
|
2019-03-11 20:56:47 +01:00
|
|
|
tools:targetApi="lollipop" />
|
2018-04-24 21:27:45 +02:00
|
|
|
|
2018-11-02 17:38:20 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/timetableWidgetNext"
|
2019-04-08 00:18:45 +02:00
|
|
|
android:layout_width="50dp"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
2019-04-08 00:18:45 +02:00
|
|
|
android:layout_toEndOf="@id/timetableWidgetPrev"
|
2018-11-02 17:38:20 +01:00
|
|
|
android:backgroundTint="@color/colorPrimaryDark"
|
|
|
|
android:contentDescription="@string/all_next"
|
|
|
|
android:rotation="180"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:src="@drawable/ic_widget_chevron"
|
2019-03-11 20:56:47 +01:00
|
|
|
tools:targetApi="lollipop" />
|
2018-04-24 21:27:45 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<ListView
|
2018-11-02 17:38:20 +01:00
|
|
|
android:id="@+id/timetableWidgetList"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-08-23 18:02:21 +02:00
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginTop="66dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:divider="#00ffffff"
|
|
|
|
android:dividerHeight="4dp"
|
2019-03-11 20:56:47 +01:00
|
|
|
tools:listitem="@layout/item_widget_timetable" />
|
2018-04-24 21:27:45 +02:00
|
|
|
|
|
|
|
<TextView
|
2018-11-02 17:38:20 +01:00
|
|
|
android:id="@+id/timetableWidgetEmpty"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2018-08-26 00:18:31 +02:00
|
|
|
android:text="@string/widget_timetable_no_items"
|
2018-04-24 21:27:45 +02:00
|
|
|
android:textColor="@android:color/black"
|
2019-03-11 20:56:47 +01:00
|
|
|
android:textSize="20sp"
|
2021-08-23 18:02:21 +02:00
|
|
|
android:translationY="28dp"
|
2019-03-11 20:56:47 +01:00
|
|
|
tools:visibility="invisible" />
|
2018-06-14 11:40:46 +02:00
|
|
|
</FrameLayout>
|