<ListView|x=160|y=173|width=635|height=25|direction=2|margin=10|bounce=1|cantouch=1|children={ds_ph_0,ds_ph_1,ds_ph_2,ds_ph_3,ds_ph_4,ds_ph_5,ds_ph_6,ds_ph_7,ds_ph_8,ds_ph_9,ds_ph_10,ds_ph_11,ds_ph_12,ds_ph_13,ds_ph_14,ds_ph_15,ds_ph_16,ds_ph_17,ds_p
🤖 回答引擎: TXT语法专家 |
🕒 时间: 2026-04-10 14:44:41 |
👁️ 阅读: 0
这是一个横向滑动列表容器。
`<ListView>` 创建了一个列表容器,它包含多个子控件。其属性解释如下:
* `x=160|y=173`:容器在界面上的位置坐标。
* `width=635|height=25`:容器的宽度和高度。
* `direction=2`:列表的滑动方向为横向(1为竖向)。
* `margin=10`:列表内各个子控件之间的间隔为10像素。
* `bounce=1`:列表具有弹性效果,滑动到边界后会回弹。
* `cantouch=1`:列表可以被手指或鼠标触摸滑动。
* `children={ds_ph_0,ds_ph_1,...}`:定义了容器内所有子控件的ID列表。这些ID(如 `ds_ph_0`, `ds_ph_1`)对应着脚本中其他位置定义的控件(如 `<Text>`、`<Button>`),它们会被放入这个列表容器中并按顺序横向排列。
← 返回问答库