2 개의 이미지가 포함 된 내부 상대적 레이아웃이 있고 android : layout_marginRight 속성을 설정하면 아무 것도하지 않습니다. 그냥 당신이 당신의 이미지 뷰의 오른쪽에서 마진을 얻을 것이다이 줄을 제거 android : layout_marginRight 속성이 RelativeLayout에서 작동하지 않습니다.
android:layout_alignParentRight="true"
을 일어나는 이유를 다음과 같은 먹으 렴을 사용했다
<RelativeLayout
android:id="@+id/location_image_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="80dp" />
<ImageView
android:layout_width="69.33dp"
android:layout_height="72dp"
android:background="@drawable/icon"
android:layout_centerInParent="true" />
</RelativeLayout>
달성하려는 것은 무엇입니까? – wtsang02
상단 이미지가 두 번째 이미지의 왼쪽에 있고 두 번째 이미지의 맨 아래에 정렬하고 싶습니다. – meh
좋은 답변이 많이 있습니다. 당신이 좋아하는 답변을 upvote하는 좋은 연습. – Siddharth