Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何将相机覆盖在附着的图像上?_Android - Fatal编程技术网

Android 如何将相机覆盖在附着的图像上?

Android 如何将相机覆盖在附着的图像上?,android,Android,我有一个应用程序,我想在其中为用户配置文件创建imageview,如有人知道任何库或任何其他解决方案,请告诉我。这称为锚定视图。一种使用FrameLayout的方法 <FrameLayout android:id="@+id/frameImage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="tr

我有一个应用程序,我想在其中为用户配置文件创建imageview,如有人知道任何库或任何其他解决方案,请告诉我。

这称为锚定视图。一种使用FrameLayout的方法

<FrameLayout
    android:id="@+id/frameImage"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerInParent="true">

    <ImageView
        android:id="@+id/img_ProfilePic"
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:layout_margin="10dp"
        android:src="@mipmap/ic_launcher"/>

    <ImageView
        android:id="@+id/img_Camera"
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_gravity="right|bottom"
        android:src="@mipmap/ic_launcher"
        />
</FrameLayout>