add iOS style battery widget

This commit is contained in:
Kavish Devar
2025-01-26 19:14:53 +05:30
parent 66d7adf22c
commit f67e5defcf
17 changed files with 505 additions and 121 deletions

View File

@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:description="@string/app_widget_description"
android:initialKeyguardLayout="@layout/battery_widget"
android:initialLayout="@layout/battery_widget"
android:minWidth="40dp"
android:minWidth="180dp"
android:minHeight="40dp"
android:previewImage="@drawable/example_appwidget_preview"
android:previewLayout="@layout/battery_widget"
android:resizeMode="horizontal|vertical"
android:targetCellWidth="1"
android:targetCellWidth="3"
android:targetCellHeight="1"
android:updatePeriodMillis="300000"
android:widgetCategory="home_screen|keyguard" />
android:widgetCategory="home_screen|keyguard"
tools:ignore="UnusedAttribute" />