我在ROKU中添加了两个按钮,例如belove。
然后我用爱心之类的按钮将边框绑在显示边框上。
我向YuppTV展示的就像是爱人,但我不知道曾经使用过哪种组件。但是我尝试在Button中做同样的事情。
有什么方法可以在ROKU中为按钮设置边框。并删除Button中的项目符号。
答案 0 :(得分:0)
否,没有本机方法,您应该创建一个自定义组件并在元素周围放置四个矩形。
rectTop=createObject("roSGNode", "Rectangle")
rectTop.width = element.width
rectTop.height = 2
rectTop.translation = [0, 0]
rectBottom=createObject("roSGNode", "Rectangle")
rectBottom.width = element.width
rectBottom.height = 2
rectBottom.translation = [0, element.height - rectBottom.height]
rectLeft=createObject("roSGNode", "Rectangle")
rectLeft.width = 2
rectLeft.height = element.height
rectLeft.translation = [0, 0]
rectRight=createObject("roSGNode", "Rectangle")
rectRight.width = 2
rectRight.height = element.height
rectRight.translation = [element.width - rectRight.width, 0]
答案 1 :(得分:0)
您可以将按钮添加到标记列表,然后使用drawFocusFeedback = "true"
显示焦点边框,并使用focusBitmapBlendColor
指定颜色