From c4909b97058c3d145999d508cc1f6f0682420393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=AB=E6=B7=AC?= <139463107+Live-Block@users.noreply.github.com> Date: Sun, 3 Nov 2024 12:00:14 +0800 Subject: [PATCH] Update FreeformView.kt --- .../java/com/sunshine/freeform/ui/freeform/FreeformView.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/com/sunshine/freeform/ui/freeform/FreeformView.kt b/app/src/main/java/com/sunshine/freeform/ui/freeform/FreeformView.kt index fcca7d6..49464c2 100644 --- a/app/src/main/java/com/sunshine/freeform/ui/freeform/FreeformView.kt +++ b/app/src/main/java/com/sunshine/freeform/ui/freeform/FreeformView.kt @@ -142,6 +142,12 @@ class FreeformView( private var freeformHeight = 0 private var freeformWidth = 0 + private var minFreeformHeight = 0 + private var minFreeformWidth = 0 + + private var maxFreeformHeight = 0 + private var maxFreeformWidth = 0 + // 挂起后与边缘的 Padding private var screenPaddingX: Int = context.resources.getDimension(R.dimen.freeform_screen_width_padding).roundToInt() private var screenPaddingY: Int = context.resources.getDimension(R.dimen.freeform_screen_height_padding).roundToInt()