Android RelativeLayout alignParentRight does not properly align Imagview -


i trying place imageview in bottom right corner of display. image expand dynamically different size displays.

the image aligns when smaller , not set expand, when set fill_parent image moved left , no longer lines flush right side of display.

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="horizontal"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     >     <surfaceview          android:id="@+id/surface1"          android:layout_width="wrap_content"          android:layout_height="wrap_content"         ></surfaceview>     <imageview          android:src="@+drawable/image_1_patched"          android:layout_height="fill_parent"          android:id="@+id/imageview1"          android:layout_width="fill_parent"         android:layout_alignparentright="true"         ></imageview> </relativelayout> 

how can make image take room possible , remain flush right side of display?

thank you.

set scaletype of imageview fit_xy.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -