Hi, I am working on a soft keyboard Android . Typically, shortcuts displayed on keys are single characters, as shown below

the above is accomplished by simply using the keylabel attribute of the key tag in the Keyboard to display any text we want on the key. But now my requirement is to display multiple characters on the same key, as shown below

I have one solution for this using android: keyIcon , but the limitation is that I need the color of the characters to be configured so that the user can change the color of any character. Like 1 with red, | with blue, q with green . Therefore, it must be customized for any color. This is why I skipped the keyIcon property to display text on the character.
So, there is a way to set several characters per key.
source
share