Blackberry 10 Cascades - Images inside Text Area

筅森魡賤 提交于 2019-12-12 10:57:47

问题


I am designing an application that needs to replace some text inside of a TextArea with an Image. For example, if I enter a phone Number that exists on the Native contacts list, I need to replace the text on the text Area with an Image and be able to add more phone Numbers (the attached image illustrates the procedure). This is the native messaging application, but I can't find an API to do this in Cascades.

Thanks for the help.


回答1:


I believe what you are looking for is the FlowListLayout but would recommend you become familiar with how Cascades deals with simple lists first. The general premise, and how some form a list can help you, is that each element on the list is display an an object, or collection of objects depending on what type the element is. As elements change in type, in this example from the text entered by the user, to the contact found by searching for that text, the form of display can change.



来源:https://stackoverflow.com/questions/22764462/blackberry-10-cascades-images-inside-text-area

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!