#贴纸
1.更改StickerView的两个字段来决定MAX或MIN缩放大小
public static final float MAX_SCALE_SIZE = 3.2f;
public static final float MIN_SCALE_SIZE = 0.6f;
2.override dispatchTouchEvent如果必须添加一个以上的贴纸
@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
int x = (int) ev.getX();
//calculate action point Y apart from Cont
2021-06-05 17:03:30
7.67MB
Java
1