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

116 lines
4.7 KiB
XML
Raw Normal View History

2018-04-24 21:27:45 +02:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
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"
android:backgroundTint="?attr/colorSurface"
android:clipToOutline="true"
android:orientation="vertical"
android:paddingHorizontal="16dp"
android:theme="@style/Wulkanowy.Widget.Theme"
tools:context=".ui.modules.timetablewidget.TimetableWidgetProvider">
2018-04-24 21:27:45 +02:00
<LinearLayout
2018-04-24 21:27:45 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingVertical="16dp">
2018-04-24 21:27:45 +02:00
<TextView
android:id="@+id/timetableWidgetDate"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_weight="1"
android:lines="1"
android:textAppearance="?attr/textAppearanceHeadline5"
tools:text="Pon, 12.05" />
2018-11-02 17:38:20 +01:00
<ImageButton
android:id="@+id/timetableWidgetPrev"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="12dp"
android:background="?attr/selectableItemBackgroundBorderless"
2018-11-02 17:38:20 +01:00
android:contentDescription="@string/all_prev"
android:rotation="180"
2019-08-26 20:54:20 +02:00
android:src="@drawable/ic_widget_chevron"
android:tint="?attr/colorPrimary"
app:tint="?attr/colorPrimary"
tools:ignore="UseAppTint" />
2018-04-24 21:27:45 +02:00
2018-11-02 17:38:20 +01:00
<ImageButton
android:id="@+id/timetableWidgetNext"
android:layout_width="48dp"
android:layout_height="48dp"
android:background="?attr/selectableItemBackgroundBorderless"
2018-11-02 17:38:20 +01:00
android:contentDescription="@string/all_next"
2019-08-26 20:54:20 +02:00
android:src="@drawable/ic_widget_chevron"
android:tint="?attr/colorPrimary"
app:tint="?attr/colorPrimary"
tools:ignore="UseAppTint" />
<FrameLayout
android:id="@+id/timetableWidgetAccount"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="12dp"
android:background="@drawable/background_timetable_widget_avatar"
android:backgroundTint="@android:color/transparent"
android:clickable="true"
android:clipToOutline="true"
android:contentDescription="@string/account_quick_manager"
android:focusable="true"
android:foreground="?attr/selectableItemBackgroundBorderless"
android:importantForAccessibility="yes"
android:outlineProvider="background">
<ImageView
android:id="@+id/timetableWidgetAccountBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:importantForAccessibility="no"
tools:src="@drawable/background_timetable_widget_avatar"
tools:tint="?attr/colorPrimary" />
<TextView
android:id="@+id/timetableWidgetAccountInitials"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textAppearance="?attr/textAppearanceTitleLarge"
android:textColor="@android:color/white"
android:textSize="20sp"
tools:text="AW" />
</FrameLayout>
</LinearLayout>
2018-04-24 21:27:45 +02:00
<FrameLayout
2018-04-24 21:27:45 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2018-04-24 21:27:45 +02:00
<ListView
android:id="@+id/timetableWidgetList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:divider="@android:color/transparent"
android:dividerHeight="4dp"
android:paddingBottom="16dp"
tools:listfooter="@layout/item_widget_timetable_footer"
tools:listitem="@layout/item_widget_timetable" />
<TextView
android:id="@+id/timetableWidgetEmpty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/widget_timetable_no_items"
android:textAppearance="?attr/textAppearanceBody1"
android:visibility="gone" />
</FrameLayout>
</LinearLayout>