android - Align ImageView to bottom Right of LinearLayout -
i'm triying put imageview in bottom right of linearlayout .... wrote code bellow :
style.xml:
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <linearlayout android:layout_width="fill_parent" android:layout_height="90dp" android:background="@drawable/my_background" android:orientation="horizontal" > <imageview android:id="@+id/imageview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|right" android:src="@drawable/my_small_image" /> </linearlayout> <listview android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="wrap_content"/> </linearlayout>
this code results in imageview 'my_small_image' @ bottom right, need in bottom left. have ideas this?
i hope here can me.
best regards , in advance, fadel.
use relativelayout
<relativelayout android:layout_width="fill_parent" android:layout_height="90dp" android:background="@drawable/my_background" android:layout_alignparentbottom="true" > <imageview android:id="@+id/imageview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentright="true" android:src="@drawable/my_small_image" /> </relativelayout>
Comments
Post a Comment