On Nov 2, 1:06 am, Emmanuel 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
> :http://androidblogger.blogspot.com/2009/08/tutorial-how-to-ha
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
RelativeLayouts are easy to use once you are comfortable with them. If
you still want to use LinearLayout, this will solve your problem.
But if you use this, the UI Hierarchy will be very complex. As Mark
suggested, it is better to use a relative layout.
Dexter
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 gra
4 matches
Mail list logo