Android代码-拍照时之拍预览界面指定区域的照片

上传者: 39840650 | 上传时间: 2021-09-10 17:03:27 | 文件大小: 1.51MB | 文件类型: ZIP
FocusSurfaceView 该库大部分参考IsseiAoki的SimpleCropView https://github.com/IsseiAoki/SimpleCropView 实现了在相机的预览界面指定一个区域的大小,形状和位置,只拍摄该指定区域里的图像 支持 API Level 10 and above. 使用方法: 在工程和module里的build.gradle分别添加 allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.CGmaybe10:FocusSurfaceView:v1.0.1' } private FocusSurfaceView previewSFV = (FocusSurfaceView) findViewById(R.id.preview_sv); mCa

文件下载

资源详情

[{"title":"( 56 个子文件 1.51MB ) Android代码-拍照时之拍预览界面指定区域的照片","children":[{"title":"FocusSurfaceView-master","children":[{"title":".gitignore <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"app","children":[{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 965B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"cymaybe","children":[{"title":"foucssurfaceview","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 760B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 746B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"crop_mode_layout.xml <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"picture_layout.xml <span style='color:#111;'> 901B </span>","children":null,"spread":false}],"spread":true},{"title":"layout-land","children":[{"title":"crop_mode_layout.xml <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"picture_layout.xml <span style='color:#111;'> 901B </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"take_picture_button_bg.xml <span style='color:#111;'> 278B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_take_picture_pressed.png <span style='color:#111;'> 21.54KB </span>","children":null,"spread":false},{"title":"ic_take_picture_normal.png <span style='color:#111;'> 21.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 701B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"cymaybe","children":[{"title":"foucssurfaceview","children":[{"title":"fragment","children":[{"title":"PictureFragment.java <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false}],"spread":true},{"title":"activity","children":[{"title":"MainActivity.java <span style='color:#111;'> 10.40KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"proguard-rules.pro <span style='color:#111;'> 637B </span>","children":null,"spread":false}],"spread":true},{"title":"settings.gradle <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"screenshots","children":[{"title":"ratio_3_4_pre.png <span style='color:#111;'> 60.52KB </span>","children":null,"spread":false},{"title":"free.png <span style='color:#111;'> 69.63KB </span>","children":null,"spread":false},{"title":"circle.png <span style='color:#111;'> 69.43KB </span>","children":null,"spread":false},{"title":"free_pre.png <span style='color:#111;'> 54.07KB </span>","children":null,"spread":false},{"title":"circle_pre.png <span style='color:#111;'> 68.64KB </span>","children":null,"spread":false},{"title":"demo.gif <span style='color:#111;'> 896.14KB </span>","children":null,"spread":false},{"title":"square_pre.png <span style='color:#111;'> 56.05KB </span>","children":null,"spread":false},{"title":"square.png <span style='color:#111;'> 67.14KB </span>","children":null,"spread":false},{"title":"ratio_3_4.png <span style='color:#111;'> 66.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":"focussurfaceview","children":[{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"cymaybe","children":[{"title":"foucsurfaceview","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 763B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 296B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 78B </span>","children":null,"spread":false},{"title":"attrs.xml <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"cymaybe","children":[{"title":"foucsurfaceview","children":[{"title":"animation","children":[{"title":"ValueAnimatorV8.java <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"ValueAnimatorV14.java <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"SimpleValueAnimator.java <span style='color:#111;'> 294B </span>","children":null,"spread":false},{"title":"SimpleValueAnimatorListener.java <span style='color:#111;'> 202B </span>","children":null,"spread":false}],"spread":false},{"title":"FocusSurfaceView.java <span style='color:#111;'> 42.80KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"proguard-rules.pro <span style='color:#111;'> 637B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • usecf :
    很不错而且不需要积分 现在很难的 一般的都需要50积分,唯一就是选区的图片拍照不是很准确
    2020-05-18

免责申明

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