修复了柱状图显示问题,修复了菜品图片显示问题,处理了人脸采集框变形问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user