I ma następujące XML:RelativeLayout - CenterInParent i marginTop
<RelativeLayout android:id="@+id/cover_box"
android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@+id/cover"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@+id/download" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/mark_download"
android:layout_centerInParent="true" android:layout_marginTop="90px" />
</RelativeLayout>
Ale to wyglądać tak jak z marginTop jest ignorowany.
Jeśli tak było, to zmienia margines wysoka wartość zmieniłaby położenie obrazu. Ale testuję na systemie Android 4.2 i wygląda na to, że centerInParent całkowicie zastępuje margines w układzie względnym. – Behnam