> I am trying to make the buttons small so that i can put accomodate
> atleast 10 buttons in a single line. But as it turns out i am not able
> to make buttons smaller beyond a certain size. I have tried various
> combinations of set.*Width/Height and its not working. Any idea how to
> do this?

You haven't indicated:

-- what layout container you are using (LinearLayout? RelativeLayout?
TableLayout?)
-- whether you are using Button or ImageButton
-- what you are putting in the Button as a label (or in ImageButton as an
image)
-- what font you are using for the Button (if applicable)

Without those details, it is difficult to tell where the problem might lie.

Also, are you sure you want to do what you are doing?

-- Phone screen sizes will vary, so I can easily imagine Android devices
where your buttons are only ~4mm wide, which might well irritate your
users

-- Phones with touchscreens might make a row of 10 buttons difficult to
use, as users' fingers might be too big to reliably choose specific
buttons

-- Could you use ScrollView to still have a row of 10 buttons, but only
have a few visible at one time? This might work nicely with the "flinging"
approach demonstrated at Google I/O this week (lots of video of their
Android demo floating around the Internet)

-- Do they have to be buttons? Other widgets, like spinners, are nicely
suited for giving a variety of choices in a small area. Or maybe you could
draw something yourself using the drawing primitives (android.graphics).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to