*> Problem is the way the KeyboardView class is designed in the Android API,
as far as I can see it only allows for one key background for all keys.*

Ahh.... Now we get to the real problem.  If you had been more specific about
the problem in the first place then better help could have been provided (as
opposed to lectures about standard OOP principles).

*> As of yet the only way around it I can see is to create a IME from the
ground up and dump the Keyboard classes the Andorid API provides out of the
box.
*
So it seems that is the case.  That's unfortunate; I can see why it might be
useful to have some keys with different backgrounds.

One thing you could try doing (but I admit this would be cludgy and ugly
code) is to set the background for the keyboard and then calling
invalidateKey() on a specific key.  Then, change the background to what you
want for the next key and calling invalidateKey() again... Probably won't
work, but it may be worth a shot.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Mar 22, 2011 at 12:26 AM, trans <[email protected]> wrote:

> My app is based on the SoftKeyboard example. Problem is the way the
> KeyboardView class is designed in the Android API, as far as I can see it
> only allows for one key background for all keys.
>
> As of yet the only way around it I can see is to create a IME from the
> ground up and dump the Keyboard classes the Andorid API provides out of the
> box.
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to