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
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
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
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
4 matches
Mail list logo