如何在附加的图像上叠加相机?

问题描述 投票:-5回答:1

我有一个应用程序,如果anybodyenter image description here知道任何库或任何其他解决方案,我想让用户配置文件的imageview附加到这个问题请告诉我。

android
1个回答
0
投票

这被称为锚视图。使用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>
© www.soinside.com 2019 - 2024. All rights reserved.