saurabh wrote:
> I am trying to write a word game and want the word to be displayed on
> screen with each letter clickable.

Ah! I thought that might be the case but didn't want to make an assumption.

> I am using TableLayout and TableRow to accomodate the buttons. I am
> using normal button(not the image buttons) and setting single letters
> as labels. The font is the default one.
> I understand the other concerns but since i have single letters as the
> labels i am not worried about the screen size much. I considered
> vertical orientation(with the size i am able to achieve) but decided
> against it for the reason that it might need scrolling and thats what
> i don't want. I want the buttons to be displayed all at once.
> 
> I considered implementing my own view to achieve the smaller size by
> drawing but that would effectively mean reimplementing buttons, but of
> small size, from scratch. I could well achieve what i want just by
> making the buttons smaller. Hope this clarifies my needs a bit

Here are some random ideas; I apologize if you've tried all of these:

-- Change the font size to be something smaller (android:textSize)

-- If your letters have no descenders (e.g., they're capital letters in 
English), try setting android:includeFontPadding=false

-- Try setting android:maxHeight and android:maxWidth to be a fixed 
number of pixels

-- Switch to ImageButton, as I seem to recall there being less buffer 
between the edge of the image and the button boundaries than do regular 
Buttons, though you'll need to create images for the relevant letters

-- Find some theme/style combination that works better for you:

http://code.google.com/android/devel/ui/applying-themes.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch in September! http://www.bignerdranch.com

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