Hmm...having not developed an IME I don't know what the best course
is, but there are APIs for deploying a custom IME. Within those there
must be ways fo specifying the drawables. I gather that what you want
to do is to change the spacebar of the default android keyboard?
That's going to be ugly as you have discovered. Those resources are of
course going to be private as who wants dev changing the keyboard just
for their app? I'd consider something else. Do you really need to
change the spacebar drawable? Its just a spacebar.


Jonathan


On Mon, Mar 21, 2011 at 3:12 PM, trans <transf...@gmail.com> wrote:
> "The alternative would be to copy the code from that class and create your
> own, making those fields protected or providing methods to mutate them."
> That's what I've started to conclude myself and attempted to do so, but ran
> into the problem of accessing `com.android.internal.R`. Which means that
> I'll have to provide a replacement for each value, e.g.
>
>   com.android.internal.R.styleable.KeyboardView_keyBackground
>   com.android.internal.R.styleable.KeyboardView_verticalCorrection
>   com.android.internal.R.styleable.KeyboardView_keyPreviewLayout
>   com.android.internal.R.styleable.KeyboardView_keyPreviewOffset
>   com.android.internal.R.styleable.KeyboardView_keyPreviewHeight
>   com.android.internal.R.styleable.KeyboardView_keyTextSize
>   com.android.internal.R.styleable.KeyboardView_keyTextColor
>   com.android.internal.R.styleable.KeyboardView_labelTextSize
>   com.android.internal.R.styleable.KeyboardView_popupLayout
>   com.android.internal.R.styleable.KeyboardView_shadowColor
>   com.android.internal.R.styleable.KeyboardView_shadowRadius
>
> and more. Deeper and deeper. And I just want to change the background image
> of the spacebar.
>

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

Reply via email to