2

I am working to tint all UI elements reddish in an astronomy app. I have successfully done this for basically everything except the onscreen keyboard. I need to get a reference to the keyboard's Window or View in order to do this. I have not found anything in the API for doing so.

Can anyone suggest a way for me to get hold of this? I have seen postings explaining (a hack for) how to learn when the keyboard is shown or hidden, but not to actually get a reference to the view.

Thanks Bill

btschumy
  • 1,435
  • 1
  • 18
  • 35

1 Answers1

2

Can anyone suggest a way for me to get hold of this?

Write your own input method editor and hope users use it. You cannot affect other developers' code this way.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Well, I'm not trying to affect other developer's code. I only use the system supplied soft keyboards. It is not totally clear why this would be any different that being able to redden the system alert dialogs which I can do without problems. Are the system input method editors really totally locked down? – btschumy Nov 19 '11 at 05:09
  • @btschumy: I know of no way for you to "get a reference to the keyboard's Window or View". While your objective is reasonable (and might be useful for darkrooms and other light-sensitive situations), I have no idea how you'd pull it off, short of writing your own IME, or contributing a patch to an existing open source one to allow for a configuration option for tint. – CommonsWare Nov 19 '11 at 12:59
  • Fair enough. Thanks for the info. – btschumy Nov 20 '11 at 16:43