Android 安卓摄像头与透明图片重叠
对于Android应用程序,我有一个小问题: 我需要拍一张照片,但我需要在相机显示屏上放一个透明的图像,就像重叠的一样 有不同的方法(但我不知道如何):Android 安卓摄像头与透明图片重叠,android,image,camera,overlap,Android,Image,Camera,Overlap,对于Android应用程序,我有一个小问题: 我需要拍一张照片,但我需要在相机显示屏上放一个透明的图像,就像重叠的一样 有不同的方法(但我不知道如何): 使用android摄像头 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY,
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
activity.startActivityForResult(intent, Picture.CAMERA);
对于这一点,我应该做任何事情,像开始这个意图透明,我的重叠图像将在下面setContentView(R.layout.preview_camera);
//另一个.xml文件
controlInflater1 = LayoutInflater.from(getBaseContext());
View viewControl1 = controlInflater.inflate(R.layout.frame_layout, null);
LayoutParams layoutParamsControl1
= new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT);
this.addContentView(viewControl1, layoutParamsControl1);
阅读文件,了解更多信息。这可能会有所帮助