Giter VIP home page Giter VIP logo

android-customcamera's Issues

bug

在vivo手机上拉伸变形(预览跟转换都是)
在三星上转换后的画面是坏的(整个画面都是条状)
在小米上,变形
在htc上变形
一堆bug

调整相机尺寸

调整相机尺寸,相机在预览的时候会变形哦,需求需要将拍摄区域调整到一行文字高度差不多大小,设置之后整个相机界面跟被压缩了一样变形,有什么解决办法吗?

添加AlertDialog的问题

我想在点击"我要拍照"的按钮时跳出Dialog
但是会直接闪退
请问有什么解决方法吗?
以下为"我要拍照"按钮的listener
if (ActivityCompat.checkSelfPermission(activity, Manifest.permission.CAMERA)
!= PackageManager.PERMISSION_GRANTED) {
//未授权,提起权限申请
ActivityCompat.requestPermissions(activity,
new String[]{Manifest.permission.CAMERA},
AppConstant.PERMISSION.CAMERA);
} else {
AlertDialog.Builder takePicDialog = new AlertDialog.Builder(MainActivity.this);
takePicDialog.setMessage("123");
takePicDialog.show();
CameraUtil.getInstance().camera(MainActivity.this);
}
请问有什么解法吗?
感谢

疑问

这好像只能拍照一次,能拍照完继续预览吗?

对焦

红米note3 拍照的时候貌似无法对焦

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.