优化
This commit is contained in:
1 parent
9c5468de98
commit
221510340a
2 files changed
+2
-2
No files matched your search
@@ -67,7 +67,7 @@ class BatteryView @JvmOverloads constructor(
|
||||
layout.getLineBounds(0, outFrame)
|
||||
val batteryStart = layout
|
||||
.getPrimaryHorizontal(text.length - battery.toString().length)
|
||||
.toInt() + 3.dp
|
||||
.toInt() + 2.dp
|
||||
val batteryEnd =
|
||||
batteryStart + StaticLayout.getDesiredWidth(battery.toString(), paint).toInt() + 4.dp
|
||||
outFrame.set(
|
||||
|
||||
Reference in new issue
Block a user