[android-developers] How to center a button vertically in LinearLayout?

2010-02-03 Thread kknight
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. I also tried to put a button in RelativeLayout, the button can not

Re: [android-developers] How to center a button vertically in LinearLayout?

2010-02-03 Thread TreKing
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