[android-developers] Re: idiot's guide to using layout:gravity?

2009-11-02 Thread Tim
On Nov 2, 1:06 am, Emmanuel emmanuel.ast...@gmail.com wrote: You can't have two different gravity in the same layout, so you can't do it a linear Layout, without introducing a new level in the hierarchy. I made an entry in my blog on this subject

[android-developers] Re: idiot's guide to using layout:gravity?

2009-11-01 Thread Dexter#39;s Brain
RelativeLayouts are easy to use once you are comfortable with them. If you still want to use LinearLayout, this will solve your problem. LinearLayout android:orientation=horizontal android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout

[android-developers] Re: idiot's guide to using layout:gravity?

2009-11-01 Thread Emmanuel
You can't have two different gravity in the same layout, so you can't do it a linear Layout, without introducing a new level in the hierarchy. I made an entry in my blog on this subject : http://androidblogger.blogspot.com/2009/08/tutorial-how-to-have-two-buttons-on.html Hope it helps, Emmanuel

[android-developers] Re: idiot's guide to using layout:gravity?

2009-10-29 Thread Mark Murphy
Jason Proctor wrote: i have a linear layout with two buttons. i'd like the first to be at the left edge of the container, and the right to be at the... right edge. layout gravity is advertised to do this but i don't seem to be able to influence placement with it at all. i've had the