【问题标题】:Displaying text after selecting an item in a Listpicker在 Listpicker 中选择项目后显示文本
【发布时间】:2014-05-31 01:25:00
【问题描述】:

我是 MIT App 发明者的新手,我正在尝试创建一个包含一堆名称的 Listpicker,并在单击 Listpicker 时显示它们。 Then when a particular element in the Listpicker is selected it will display more information on that element.我还希望能够在阅读完该文本后隐藏该文本。

这是我目前所拥有的。名称列表出现了,但是当我单击一个名称时,它会返回到屏幕。

【问题讨论】:

    标签: android listpicker app-inventor


    【解决方案1】:

    你可以使用listpicker的选择索引,通过选择列表项块从列表matchupDetail中获取对应的项目

    在 AfterPicking 事件中只需使用以下块:

    set MatchupsDetailDrMario.Text to select list item get global matchupDetail
                                                       matchupsDrMario.SelectionIndex
    

    【讨论】:

    • 我需要在 BeforePicking 事件中添加任何内容吗?它仍然没有出现
    • 您喜欢从详细列表中选择相应的详细信息...因此您应该从matchupDetail中选择而不是matchupList...再次查看我的答案...跨度>
    • 好吧,现在我可以显示文本了。我还决定将第二个列表选择器更改为一个标签,因为我不想点击它。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-04-21
    • 1970-01-01
    • 1970-01-01
    • 2013-05-21
    • 1970-01-01
    • 2012-07-26
    • 1970-01-01
    相关资源
    最近更新 更多