Navonil Das Navonil Das - 1 year ago 173
Java Question

How to set keyboard button size in Android

I was making a keyboard but the problem is that button size are too large and some button can't visible in The keyboard but their text are Visible.

So please Help ME

Till then I have created the keyboard layout and input function
That's all

Answer Source

Extend/Use Android's keyboard class, description from docs:

Loads an XML description of a keyboard and stores the attributes of the keys. A keyboard consists of rows of keys.

Change button size on XML:


Change button size programatically (those methods are protected):

setKeyHeight(int height);
setKeyWidth(int width)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download