修复了多次步骤2到步骤3问题
This commit is contained in:
@@ -95,11 +95,17 @@ public class CustomImageView extends androidx.appcompat.widget.AppCompatImageVie
|
||||
}
|
||||
|
||||
public void setCustomHeightPercent(float percent, boolean isAnimation) {
|
||||
// if (percent<= 0){
|
||||
// percent = 0.01f;
|
||||
// }
|
||||
setCustomHeight((int) (percent * MAX_HEIGHT), isAnimation);
|
||||
}
|
||||
|
||||
// 用于设置自定义高度的方法
|
||||
public void setCustomHeight(int height, boolean isAnimation) {
|
||||
if (height > 0) {
|
||||
height += 40;
|
||||
}
|
||||
ViewGroup.LayoutParams layoutParams = getLayoutParams();
|
||||
int height1 = layoutParams.height;
|
||||
if (height1 != height) {
|
||||
|
||||
Reference in New Issue
Block a user