修复了柱状图显示问题,修复了菜品图片显示问题,处理了人脸采集框变形问题

This commit is contained in:
zxj
2025-08-11 15:38:06 +08:00
parent 4086f9c0b7
commit fc326a8f42
8 changed files with 61 additions and 26 deletions
@@ -9,6 +9,7 @@ import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AlphaAnimation;
@@ -107,9 +108,8 @@ public class CustomImageView extends androidx.appcompat.widget.AppCompatImageVie
// 用于设置自定义高度的方法
public void setCustomHeight(int height, boolean isAnimation) {
Timber.d("setCustomHeight height = %s", height);
if (height > 0) {
height += 30;
}
setVisibility(height == 0 ? View.GONE : VISIBLE);
if (height > MAX_HEIGHT){
height = MAX_HEIGHT;
}