【问题标题】:Side menu with the search button on the Roku channel's home screenRoku 频道主屏幕上带有搜索按钮的侧边菜单
【发布时间】:2018-09-10 19:57:29
【问题描述】:

我正在使用 SceneGraph 开发一个 Roku 应用程序,我希望在频道的主屏幕上有一个带有搜索和其他按钮的侧边菜单。 我找不到如何实现这一点。有可能吗?

非常感谢

【问题讨论】:

    标签: search roku brightscript scenegraph side-menu


    【解决方案1】:

    是的,可以通过定制设计来实现。左侧菜单可以使用LabelList完成,其他组件应适当转换,以免UI重叠。

    我已经在3个频道里做过了,所以如果你对元素放置有清晰的想法,很容易保持。

    例如:

    <Rectangle color="0x000000" width="230" height="440" translation="[-10,0]" >
      <LabelList id = "categoriesLabelList" translation="[5,20]" textHorizAlign="left" itemSize="[200,40]">
      </LabelList>
    </Rectangle>
    

    您还可以在指示器聚焦任何其他元素(如 RowList、MarkupList、Postergrid 或任何元素)时隐藏左侧菜单。显示和隐藏应该在onkeyevent中处理

    function onKeyEvent(key as String, press as Boolean) as Boolean
    end function
    

    【讨论】:

    • 非常感谢您的帮助!
    • @Jeswin Rebil 请你分享一个完整的例子。我正在学习 roku,需要实现同样的东西。
    猜你喜欢
    • 1970-01-01
    • 2014-07-22
    • 1970-01-01
    • 2016-11-04
    • 1970-01-01
    • 2018-04-30
    • 2013-11-09
    • 1970-01-01
    • 2012-04-04
    相关资源
    最近更新 更多