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
+3 -9
View File
@@ -4,17 +4,11 @@
<style name="Theme.ALN" parent="android:Theme.Material.Light.NoActionBar" />
<style name="Theme.ALN.AppWidgetContainerParent" parent="@android:style/Theme.DeviceDefault">
<!-- Radius of the outer bound of widgets to make the rounded corners -->
<item name="appWidgetRadius">24dp</item>
<!--
Radius of the inner view's bound of widgets to make the rounded corners.
It needs to be 8dp or less than the value of appWidgetRadius
-->
<item name="appWidgetInnerRadius">24dp</item>
<item name="appWidgetRadius">32dp</item>
<item name="appWidgetPadding">0dp</item>
</style>
<style name="Theme.ALN.AppWidgetContainer" parent="Theme.ALN.AppWidgetContainerParent">
<!-- Apply padding to avoid the content of the widget colliding with the rounded corners -->
<item name="appWidgetPadding">16dp</item>
<item name="appWidgetPadding">0dp</item>
</style>
</resources>