On Wed, Feb 3, 2010 at 2:34 PM, kknight <kknight2...@gmail.com> wrote:

> I have a LinearLayout, which only contains one button. I want this
> button to be centered vertically and aligned to the right. I tried
> many ways, but I couldn't make this button centered vertically. It is
> always aligned to the top.
>

Did you try setting the linear layout height to fill_parent? If it's
wrap_content it will shrink to fit the one button and it won't appear to be
centered vertically.

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

-- 
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

Reply via email to