餐盘柜接口改造

This commit is contained in:
2025-12-26 14:05:41 +08:00
parent 5e4dc4baa4
commit 7a6c4012d1
28 changed files with 859 additions and 507 deletions
@@ -2,6 +2,7 @@ package com.sw.platecabinet.ext
import android.content.res.Resources
import android.util.TypedValue
import android.view.View
import androidx.annotation.Dimension
/**
@@ -50,4 +51,16 @@ val Float.sp: Float
fun formatNumber(num: String): String {
return num.padStart(2, '0')
}
fun View.visible() {
visibility = View.VISIBLE
}
fun View.invisible() {
visibility = View.INVISIBLE
}
fun View.gone() {
visibility = View.GONE
}