黑莓10瀑布 - 文本区域内的图像 [英] Blackberry 10 Cascades - Images inside Text Area

查看:247
本文介绍了黑莓10瀑布 - 文本区域内的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计需要替换图像的TextArea内一些文本的应用程序。例如,如果我输入本机的联系人列表上存在的电话号码,我需要一个图像替换的文字框中的内容,并能够添加更多的电话号码(附图片说明的程序)。这是本地消息传递应用程序,但我不能找到一个API在瀑布做到这一点。

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.

感谢您的帮助。

推荐答案

我相信你正在寻找的是FlowListLayout,但会建议你熟悉瀑布简单列表第一如何交易。一般premise,以及如何某种形式的列表可以帮助你,是,名单上的每一个元素都是显示一个对象,或者根据元素是什么类型的对象的集合。作为元素类型变化,在这个例子中,从由用户输入的文本,以通过搜索该文本中的联系,显示的形式可以改变。

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.

这篇关于黑莓10瀑布 - 文本区域内的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆