I am creating an searchbox for a tablet application. On entering any text the results appear below as a list. Now I want to change color of that part of the text that is there in searchbox. So which text control would allow me to do that. I found that RichText is one such control but Adobe recommends not to use it for mobileDevices. Any suggestion how I can tackle this problem.
Use a StyleableTextField and change the colors of substrings using HTML.
I use this approach for the Flextras AutoComplete component, although I have only tested Bold in the mobile version; it should support other colors. Conceptually like this:
No Color <font color="#492C8F">Color</font>
Both TextInput and TextArea use StyleableTextField under the hood in the Mobile Skins.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.