Android 如何在另一个图像的帮助下设置图像对齐?
我有一个布局,其中我必须根据用户设置图像(主图像)的对齐方式。为此,我有一个其他图像视图(图像视图2)。如果用户将图像视图2移动到左侧,主图像对齐方式可能会更改Android 如何在另一个图像的帮助下设置图像对齐?,android,imageview,alignment,Android,Imageview,Alignment,我有一个布局,其中我必须根据用户设置图像(主图像)的对齐方式。为此,我有一个其他图像视图(图像视图2)。如果用户将图像视图2移动到左侧,主图像对齐方式可能会更改 <RelativeLayout android:id="@+id/dialer_parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent"
<RelativeLayout
android:id="@+id/dialer_parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:src="@drawable/dialer"
android:id="@+id/dialer"
android:layout_width="150dp"
android:layout_height="150dp"/>
</RelativeLayout>
<ImageView
android:id="@+id/alignment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_alignment"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="parent"
app:layout_constraintVertical_bias="1.0" />
您可以发布布局文件吗?您使用的父级是什么?