android缩放控件

上传者: wozuihaole | 上传时间: 2023-02-22 20:03:06 | 文件大小: 135KB | 文件类型: RAR
1.Imageview利用Matrix和OnScaleGestureListener实现手势缩放;        2.在第一部分的基础上实现图片跟随手指进行滑动;        3.在一、二的基础上利用GestureDetector的OnDoubleTap回调实现图片双击还原;        4.在一、二、三的基础上将ImageView扩展为FrameLayout,实现布局内所有子控件都能手势缩放、移动、双击还原。

文件下载

资源详情

[{"title":"( 35 个子文件 135KB ) android缩放控件","children":[{"title":"zoomview","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 772B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"zoomview","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 397B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"zoomview","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 750B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.03KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 15.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"source.jpg <span style='color:#111;'> 42.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false},{"title":"attrs.xml <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 6.31KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 10.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher_round.xml <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"ic_launcher.xml <span style='color:#111;'> 276B </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"activity_main1.xml <span style='color:#111;'> 932B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"zoomview","children":[{"title":"MainActivity.java <span style='color:#111;'> 431B </span>","children":null,"spread":false},{"title":"widget","children":[{"title":"ZoomViewControler.java <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false},{"title":"ZoomTranslateDoubleTapController.java <span style='color:#111;'> 8.35KB </span>","children":null,"spread":false},{"title":"ZoomOnlyImageView.java <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"ZoomTranslateImageView.java <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"ZoomTranslateDoubleTapImageView.java <span style='color:#111;'> 7.95KB </span>","children":null,"spread":false},{"title":"ZoomImageView.java <span style='color:#111;'> 15.53KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 779B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 8B </span>","children":null,"spread":false},{"title":"zoomview.iml <span style='color:#111;'> 12.48KB </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"libs","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明