I found that if you use negative fields, you cannot align the Parent from the opposite side, so let it say that you are trying to make the image half open on the right side of the view, you cannot specify android: layout_alignParentLeft. In addition, if you need a full image and you do not want it to be cropped, as in the case when you wanted to animate onClick in full screen, you need to set the android parent layout: clipChildren = "false". The following xml def works for me:
<ImageView android:id="@+id/you_feature_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:layout_marginRight="@dimen/feature_margin_right" android:contentDescription="feature_image" android:gravity="center_vertical" android:padding="@dimen/zero" android:paddingBottom="@dimen/zero" android:paddingLeft="@dimen/zero" android:paddingRight="@dimen/zero" android:paddingTop="@dimen/zero" android:src="@drawable/feature_phone_02_2x" />
I am posting this now because I just burned for several hours trying to figure it out myself and thought that maybe this will help someone else in the future if they come across this issue like me.
source share