public void setMirrorMode(boolean isMirror) {
this.isMirror = isMirror;
if (null == rootView) return;
if (isMirror) {
//顺序不能错,正负也是
(rootView).setScaleY(-1f);
(rootView).setScaleX(1f);
} else {
(rootView).setScaleY(1);
(rootView).setScaleX(1);
}
}
网友评论