[android-developers] Re: reduce height of a button

2009-02-24 Thread Stefan Lischke
try the solution with style 2 answers before yours, but be aware, it was not shown on th emulator only at the real device. but as others say too small buttons are not useful for the g1. btw. i would like to implement buttons in the iphone style with big letters showing up over your thumb and you

[android-developers] Re: reduce height of a button

2009-02-23 Thread Blake
I've tried setting the padding with android:padding=0px, but this only seems to affect the left and right padding of the text. Setting the top/bottom padding explicitly with android:paddingTop=0px doesn't seem to have any affect either... My button is still much taller than it needs to be. On

[android-developers] Re: reduce height of a button

2009-02-23 Thread Dianne Hackborn
Why do you think it is much taller than it needs to be? Generally the buttons are sized so that they will be easy to press with a finger. You generally don't want to defeat that. On Mon, Feb 23, 2009 at 2:03 PM, Blake thom...@gmail.com wrote: I've tried setting the padding with

[android-developers] Re: reduce height of a button

2009-02-19 Thread schtieF
the label can be centered with android:gravity=center_horizontal but i dont know how to reduce the height, anyone else can help? On 15 Jan., 22:54, info.sktechnol...@gmail.com info.sktechnol...@gmail.com wrote: What is the preferred way to reduce theheightof abuttonand maintain the label in

[android-developers] Re: reduce height of a button

2009-02-19 Thread schtieF
sorry its so easy android:layout_height=35px but it does not look good, because the button gets cut off on top and you dont see any round edges anymore schtieF On 19 Feb., 12:41, schtieF lisc...@googlemail.com wrote: the label can be centered with android:gravity=center_horizontal but i

[android-developers] Re: reduce height of a button

2009-02-19 Thread for android
style=?android:attr/buttonStyleSmall On Thu, Feb 19, 2009 at 5:18 PM, schtieF lisc...@googlemail.com wrote: sorry its so easy android:layout_height=35px but it does not look good, because the button gets cut off on top and you dont see any round edges anymore schtieF On 19 Feb.,

[android-developers] Re: reduce height of a button

2009-02-19 Thread kotini tirumula
I think layout padding will help button height On Thu, Feb 19, 2009 at 5:11 PM, schtieF lisc...@googlemail.com wrote: the label can be centered with android:gravity=center_horizontal but i dont know how to reduce the height, anyone else can help? On 15 Jan., 22:54,