Android: How to fit large fonts into a small button? -


task: fit large characters small button.

problem: noticed when create button using non-alpha characters such -, +, =.. etc, there lot of "padding" below , above text, when increase font size. when use alpha characters, appears fine. ie. happens
________
|                |
|                |
|     ___     |
|    |___|    |
|                |
|                |
|
________|

when want this..
________
|     ___     |
|    |___|    |
|
________|
rectangle in middle big giant dash.

i have tried setting padding zero, doesn't work. ideas?

padding in font not in drawing system in android ! can :

1- add typeface font dealing such typing purposess

2- or try create own font can use private character edit in xp more info take on : http://www.techtipsgeek.com/design-font-characters-own-choice-windows-xp/1621/

3-better practices, try use images typing patters.

but note when make working, use shipped typeface font application because cannot guarantee devices use same font use create patters.

good luck,

mohammed,


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -