Android 如何组合重叠的ImageView、FrameLayout和;相对的编程?
我需要结合3个布局 底部是ImageView,上面是FrameLayout,上面是RelativeLayout。Android 如何组合重叠的ImageView、FrameLayout和;相对的编程?,android,imageview,android-camera,android-relativelayout,Android,Imageview,Android Camera,Android Relativelayout,我需要结合3个布局 底部是ImageView,上面是FrameLayout,上面是RelativeLayout。 ImageView从摄像头拍摄图片。 FrameLayout用于绘制线条(PaintView)。 RelativeLayout用于从侧面将小图像拖动到屏幕上 布局和图像视图是用xml完成的 拍照时,它应该以编程方式将上述所有布局组合在一起,形成一个jpg文件 进度:。已创建ImageView的jpg文件 卡住:合并布局 先谢谢你 这是我的XML xml enter
ImageView
从摄像头拍摄图片。
FrameLayout
用于绘制线条(PaintView)
。
RelativeLayout
用于从侧面将小图像拖动到屏幕上
布局和图像视图是用xml完成的
拍照时,它应该以编程方式将上述所有布局组合在一起,形成一个jpg文件
进度:。已创建ImageView的jpg文件
卡住:合并布局
先谢谢你
这是我的XML
xml
enter code here
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/parentFrameLayout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<android.view.SurfaceView
android:id="@+id/preview"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</android.view.SurfaceView>
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/capIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/cap" />
<ImageView
android:id="@+id/glasses"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/eye_glasses" />
</RelativeLayout>
</FrameLayout>
</FrameLayout>
xml
在这里输入代码
我将检查以下示例是否工作正常。你可以试试这个
发布你的代码,展示你是如何调整它们的。@gautambib你能分享你是如何完成任务的吗?你能分享你是如何完成任务的吗?到目前为止你都做了些什么?这有点复杂,因为你想打印屏幕