Layout 在android中设置布局xml
`Layout 在android中设置布局xml,layout,Layout,` `当我将图像设置在透明图像的右侧时(在相对布局中定义)通过布局,然后图像被放置在移动屏幕的右侧,但如果我给出图像的实际大小,则第二个图像被放置在图像的末尾,但我不想硬编码图像的宽度。您应该链接布局的图像,以便更好地了解您的问题。在第一个图像视图中 <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android
`当我将图像设置在透明图像的右侧时(在相对布局中定义)通过布局,然后图像被放置在移动屏幕的右侧,但如果我给出图像的实际大小,则第二个图像被放置在图像的末尾,但我不想硬编码图像的宽度。您应该链接布局的图像,以便更好地了解您的问题。在第一个图像视图中
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/round" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/round" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:background="@drawable/round" />
</RelativeLayout>
我希望这个问题能解决
SET android:layout_aliginparentleft="true"