use of com.slidingmenu.lib.SlidingMenu.CanvasTransformer in project weiciyuan by qii.
the class CanvasTransformerBuilder method concatTransformer.
public CanvasTransformer concatTransformer(final CanvasTransformer t) {
initTransformer();
mTrans = new CanvasTransformer() {
public void transformCanvas(Canvas canvas, float percentOpen) {
mTrans.transformCanvas(canvas, percentOpen);
t.transformCanvas(canvas, percentOpen);
}
};
return mTrans;
}
use of com.slidingmenu.lib.SlidingMenu.CanvasTransformer in project weiciyuan by qii.
the class CanvasTransformerBuilder method rotate.
public CanvasTransformer rotate(final int openedDeg, final int closedDeg, final int px, final int py, final Interpolator interp) {
initTransformer();
mTrans = new CanvasTransformer() {
public void transformCanvas(Canvas canvas, float percentOpen) {
mTrans.transformCanvas(canvas, percentOpen);
float f = interp.getInterpolation(percentOpen);
canvas.rotate((openedDeg - closedDeg) * f + closedDeg, px, py);
}
};
return mTrans;
}
use of com.slidingmenu.lib.SlidingMenu.CanvasTransformer in project little-bear-dictionary by daimajia.
the class CanvasTransformerBuilder method rotate.
public CanvasTransformer rotate(final int openedDeg, final int closedDeg, final int px, final int py, final Interpolator interp) {
initTransformer();
mTrans = new CanvasTransformer() {
public void transformCanvas(Canvas canvas, float percentOpen) {
mTrans.transformCanvas(canvas, percentOpen);
float f = interp.getInterpolation(percentOpen);
canvas.rotate((openedDeg - closedDeg) * f + closedDeg, px, py);
}
};
return mTrans;
}
Aggregations