0
私は登録画面をデザインしています。ここには円形の画像の下隅にボタンを配置する必要があります。これは私の出力です。私はgithubのサードパーティライブラリを使用していますde.hdodenhof:circleimageview:2.0.0 今私は欲しい これはどのように設計するのですか?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.this_pc.framelayout.MainActivity"
android:background="@color/white">
<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/frameLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
android:contentDescription="Image Border"
android:padding="0dp"/>
<de.hdodenhof.circleimageview.CircleImageView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/profile_image"
android:layout_width="300dp"
android:layout_height="300dp"
android:src="@drawable/profile"
app:civ_border_width="2dp"
app:civ_border_color="#FF000000"
android:layout_gravity="center_horizontal"
android:background="@drawable/round_border"/>
<Button
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="bottom|right"
android:background="@drawable/camera"/>
</FrameLayout>
</RelativeLayout>
</ScrollView>
ので、何が必要なイメージ図 の右下の角にカメラの下を配置しますあなたの問題は今ですか? –
新しい写真のようなイメージビューにそのカメラのボタンを入れたいです。aap profile –