C:\Users\Public\Documents\RAD Studio\12.0\Samples\FireMonkeyMobile

例子中的绑定方式如下图:

1、拖拽一个listview到界面上,然后用绑定向导

delphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

2、选择listview

delphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

3、选择tprototypebindsource

delphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

4、点击增加

delphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

5、选择前九个类型

delphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

6、在绑定设计界面将 colorname1 拖拽至 item.text 就完成了帮点显示颜色名称了

如图delphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

7、imagelist

如图:选择listview的itemapperance属性为 imagelistitemdelphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

然后在绑定向导里 将contactbitmap1 拖拽至 itm.bitmap 带图片功能的listview就完成了

delphi xe5 android   sample 中的 SimpleList 是怎样绑定的-LMLPHP

04-26 14:44
查看更多