You don't even need to worry about weightSum or adjustViewBounds, I don't think so. However, you must be on the right track. Try this (untested) layout and see if it works:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <ImageView android:id="@+id/qtr_img" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_weight="1" android:src="@drawable/your_image" android:scaleType="fitCenter" android:layout_alignParentTop="true" android:layout_alignParentRight="true" /> <View android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="3" /> </LinearLayout>
It simply places a blank snapshot under the image, weighted to make 3/4 of the screen, while ImageView takes up the remaining 1/4. You can also use layout_gravity="right|top" instead of alignParentTop and alignParentRight , but I just prefer it that way. Let me know if this works.
source share