添加BatteryStyleView控件,添加能量与斑马绘图风格。

This commit is contained in:
2025-12-27 21:12:54 +08:00
parent fca17908b2
commit abd956d7d0
8 changed files with 356 additions and 36 deletions

View File

@@ -33,5 +33,20 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
<cc.winboll.studio.powerbell.views.BatteryStyleView
android:id="@+id/battery_style_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:batteryPreviewColor="@color/colorPrimary"
app:previewBatteryValue="100"
app:defaultSelectedStyle="zebra_style"/>
</LinearLayout>
</LinearLayout>