Page 1 of 1

Custom image/color for suggestion selection

Posted: Thu Oct 27, 2011 6:44 pm
by creeve4
I would like to be able to use a custom image or color for the selection of suggested words. Currently it is an orange box.

Re: Custom image/color for suggestion selection

Posted: Thu Oct 27, 2011 10:38 pm
by c00ller
You can already do this. If you make a skin, just replace /drawable/candidate_highlight.9.png with whatever you want

Re: Custom image/color for suggestion selection

Posted: Fri Oct 28, 2011 2:08 pm
by creeve4
I have not been able to find a theme with a "candidate_highlight.9.png" file in the /drawable/ folder. What size should this file be? Do I need to reference it in the xml file?

Just to be clear, I am talking about the highlight of the suggested word when it is PRESSED. I know how to change the normal candidate highlight.

Re: Custom image/color for suggestion selection

Posted: Fri Oct 28, 2011 2:33 pm
by c00ller
You can see the skin I made here: http://www.dexilog.com/smartkeyboard/fo ... =13&t=1435
Is this what you mean?

Re: Custom image/color for suggestion selection

Posted: Fri Oct 28, 2011 2:50 pm
by creeve4
Exactly! Thank you!

Re: Custom image/color for suggestion selection

Posted: Fri Oct 28, 2011 3:00 pm
by c00ller
creeve4 wrote:Exactly! Thank you!
No problem! In Skin.xml, don't forget to adjust the following or else the suggestion word might look funny when pressing:

Code: Select all

<candidates>
      <colors>
            <!-- Color of the highlighted candidate -->
            <highlight>#FFFFFFFF</highlight>
      </colors>
</candidates>
As you can see it changes the suggestion word color when it is pressed. I made it white as you can see in my thread.