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

87 lines
3.5 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-11-02 11:38:20 -05:00
android:background="@android:color/white">
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"
android:src="@drawable/ic_widget_chevron_24dp" />
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:text="@string/app_name"
android:textColor="@android:color/white"
2018-11-02 11:38:20 -05:00
android:textSize="15sp" />
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"
2018-11-02 11:38:20 -05:00
android:text="@string/app_name"
2018-04-24 14:27:45 -05:00
android:textColor="@android:color/white"
2018-11-02 11:38:20 -05:00
android:textSize="14sp" />
<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"
android:src="@drawable/ic_widget_chevron_24dp" />
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"
2018-10-03 14:28:23 -05:00
android:layout_marginTop="@dimen/timetable_widget_bar_height" />
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" />
2018-06-14 04:40:46 -05:00
</FrameLayout>