Custom image/color for suggestion selection

If you wish something new in Smart Keyboard, here is the place to ask!
Post Reply
creeve4
Posts: 4
Joined: Thu Oct 27, 2011 6:38 pm
Phone: Samsung Vibrant, 2.3.7

Custom image/color for suggestion selection

Post 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.
c00ller
Posts: 63
Joined: Mon May 23, 2011 9:08 am
Phone: HTC Hero CDMA

Re: Custom image/color for suggestion selection

Post by c00ller »

You can already do this. If you make a skin, just replace /drawable/candidate_highlight.9.png with whatever you want
creeve4
Posts: 4
Joined: Thu Oct 27, 2011 6:38 pm
Phone: Samsung Vibrant, 2.3.7

Re: Custom image/color for suggestion selection

Post 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.
c00ller
Posts: 63
Joined: Mon May 23, 2011 9:08 am
Phone: HTC Hero CDMA

Re: Custom image/color for suggestion selection

Post by c00ller »

You can see the skin I made here: http://www.dexilog.com/smartkeyboard/fo ... =13&t=1435
Is this what you mean?
creeve4
Posts: 4
Joined: Thu Oct 27, 2011 6:38 pm
Phone: Samsung Vibrant, 2.3.7

Re: Custom image/color for suggestion selection

Post by creeve4 »

Exactly! Thank you!
c00ller
Posts: 63
Joined: Mon May 23, 2011 9:08 am
Phone: HTC Hero CDMA

Re: Custom image/color for suggestion selection

Post 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.
Post Reply