Gravity defines the layout of elements laid out within that view - not the view itself.
For what I think you may be trying to achieve, you may be better off with a RelativeLayout instead of a LinearLayout for your outer layout. Set the relative layout gravity to center_horizontal, then put the Image view to the right of the linear layout. There may be some fiddling depending on the exact look you are after. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

