PengCheng.Yin
PengCheng.Yin
photoview.java里面添加一下 public void resetView() { mTmpMatrix.reset(); mTmpMatrix.postTranslate(-mBaseRect.left, -mBaseRect.top); mTmpMatrix.postTranslate(mRotateCenter.x, mRotateCenter.y); mTmpMatrix.postTranslate(-mHalfBaseRectWidth, -mHalfBaseRectHeight); mTmpMatrix.postRotate(mDegrees, mRotateCenter.x, mRotateCenter.y); mTmpMatrix.postScale(1, 1, mScaleCenter.x, mScaleCenter.y); mTmpMatrix.postTranslate(mTranslateX, mTranslateY); mTmpMatrix.mapRect(mTmpRect, mBaseRect); doTranslateReset(mTmpRect); mTranslate.withScale(mScale, 1); isZoonUp = false; mTranslate.start();...
onDoubleTap(MotionEvent e)这个方法里面改一下 if (isZoonUp) { //需要缩小 if (mScale == 1){ //已经是缩小的了,此时需要放大 isZoonUp = false; from = mScale; to = mMaxScale; mScaleCenter.set(e.getX(), e.getY()); }else { from = mScale; to = 1;...
把这个库作为一个module,import进去,自己找到对应的resource做更改吧
使用android x 的viewpager2即可
补充 1、使用constaintlayout1.1版本来进行新布局编写 2、使用activity而不是appcompatActivity(会少2层根布局好像)
> 1、定义 AIDL 是 android Interface Dialog Launguage , 是一个android 接口 对话语言, > 2、作用是 为了实现进程间之间服务的通信。 > 3、实现方式, Service Client 和 Service Service 同时 持有一个 AIDL文件,编译的时候, 会自动变成一个可以引用的Binder子类。 Client 绑定服务成功后, 获取这个子类,可以使用里面的方法。 Service...