[android-developers] want to align an image button bottom right

2010-11-08 Thread Alok Upadhyay
Hii,
  how to align an imagebutton bottom right.My code is as follows:

FrameLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:gravity=center_horizontal
android:background=@drawable/help

ImageButton
android:id=@+id/done android:src=@drawable/btn_done
android:layout_width=wrap_content
android:layout_height=wrap_content android:layout_gravity=bottom
/

i am getting my image left side in the bottom but i want the
imagebutton right at the bottom!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] want to align an image button bottom right

2010-11-08 Thread TreKing
On Mon, Nov 8, 2010 at 4:43 AM, Alok Upadhyay maddy.luck...@gmail.comwrote:

 android:layout_gravity=bottom


Try android:layout_gravity=*bottom|right*

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en