fix(rings): make widget rings fill available space + higher render res
Build APK / build (pull_request) Successful in 1m42s
Build APK / build (pull_request) Successful in 1m42s
Rings were capped at a fixed 86dp; now each gauge fills its half of the widget (weighted ImageView) so they grow with the placed widget size. Bumped RingRenderer default bitmap to 360px/36 stroke to stay crisp at the larger display size.
This commit is contained in:
@@ -40,8 +40,8 @@ object RingRenderer {
|
||||
markerColor: Int?,
|
||||
centerText: String,
|
||||
labelText: String? = null,
|
||||
sizePx: Int = 240,
|
||||
strokePx: Float = 24f
|
||||
sizePx: Int = 360,
|
||||
strokePx: Float = 36f
|
||||
): Bitmap {
|
||||
val bmp = Bitmap.createBitmap(sizePx, sizePx, Bitmap.Config.ARGB_8888)
|
||||
val canvas = Canvas(bmp)
|
||||
|
||||
Reference in New Issue
Block a user