mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-25 14:17:31 +00:00
27f12c2245
A new Flight widget on iOS (small to large and the lock screen) and Android shows the trip's next flight or the one in the air: both airports, the arc with the aircraft, a countdown the system keeps running, and the delay. It follows the feed's phase, so a late departure is not flown along the arc. Around a flight the travel day's Live Activity becomes a boarding pass with a running bar and countdown, in the Dynamic Island too.
20 lines
965 B
XML
20 lines
965 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- The flight widget (widget/TrekWidgets.kt). Sizes in cells for Android 12+, dp before.
|
|
No previewImage: Glance draws the picker preview from the sample trip (providePreview). -->
|
|
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:description="@string/widget_flight_description"
|
|
android:initialLayout="@layout/glance_default_loading_layout"
|
|
android:minWidth="110dp"
|
|
android:minHeight="110dp"
|
|
android:minResizeWidth="110dp"
|
|
android:minResizeHeight="110dp"
|
|
android:maxResizeWidth="530dp"
|
|
android:maxResizeHeight="450dp"
|
|
android:targetCellWidth="4"
|
|
android:targetCellHeight="2"
|
|
android:resizeMode="horizontal|vertical"
|
|
android:updatePeriodMillis="1800000"
|
|
android:widgetCategory="home_screen"
|
|
android:configure="com.liketrek.trek.widget.WidgetConfigActivity"
|
|
android:widgetFeatures="reconfigurable|configuration_optional" />
|