1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-21 18:19:08 -05:00
wulkanowy-mirror/app/src/main/res/layout/widget_timetable.xml

100 lines
4.0 KiB
XML
Raw Normal View History

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"
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"
android:background="@android:color/white"
tools:context=".ui.modules.timetablewidget.TimetableWidgetProvider">
2018-04-24 14:27:45 -05:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="56dp"
2018-04-24 14:27:45 -05:00
android:background="@color/colorPrimary">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toStartOf="@id/timetableWidgetAccount"
android:layout_toLeftOf="@id/timetableWidgetAccount"
android:layout_toEndOf="@id/timetableWidgetNext"
android:layout_toRightOf="@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:layout_marginLeft="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:layout_marginLeft="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"
android:layout_alignParentRight="true"
android:background="?android:selectableItemBackground"
android:contentDescription="@string/account_title"
android:src="@drawable/ic_widget_account" />
2018-11-02 11:38:20 -05:00
<ImageButton
android:id="@+id/timetableWidgetPrev"
android:layout_width="50dp"
2018-11-02 11:38:20 -05:00
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:layout_marginLeft="10dp"
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-08-26 13:54:20 -05:00
android:src="@drawable/ic_widget_chevron"
tools:targetApi="lollipop" />
2018-04-24 14:27:45 -05:00
2018-11-02 11:38:20 -05:00
<ImageButton
android:id="@+id/timetableWidgetNext"
android:layout_width="50dp"
2018-11-02 11:38:20 -05:00
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@id/timetableWidgetPrev"
android:layout_toRightOf="@id/timetableWidgetPrev"
2018-11-02 11:38:20 -05:00
android:backgroundTint="@color/colorPrimaryDark"
android:contentDescription="@string/all_next"
android:rotation="180"
2019-08-26 13:54:20 -05:00
android:src="@drawable/ic_widget_chevron"
tools:targetApi="lollipop" />
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"
android:layout_marginTop="56dp"
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"
android:textSize="20sp"
tools:visibility="invisible" />
2018-06-14 04:40:46 -05:00
</FrameLayout>