Your Digital Media Has Never Looked So Good

 
signal12
Topic Author
Posts: 7
Joined: Sat Jan 06, 2018 4:29 pm

Need buttons not bulleted list

Mon Jun 17, 2019 3:12 pm

I put this in my ScreenGraph XML document:
[size=150][color=#808080]<ButtonGroup layoutDirection =  "vert"
   addItemSpacingAfterChild = "false"
   horizAlignment = "left">
   <Button
       id = "button1"
       text = "Red"/>
   <Button
       id = "Button2"
       text = "Green"/>
   <Button
       id = "Button3"
       text = "Blue"/>
</ButtonGroup>
[/size][/color]
It displays as:
* Red
* Green
* Blue
This looks like a HTML bulleted list.  I am looking for the almost default looking grey/black lettering selection buttons with the white square on the right side.  Is this the right widget?  Can't believe something so simple causing so much pain, so I am asking for help
 
 
signal12
Topic Author
Posts: 7
Joined: Sat Jan 06, 2018 4:29 pm

Re: Need buttons not bulleted list

Tue Jun 18, 2019 7:23 am

Thanks for the reply.  I wanted to use that type button because i thought it was a standard or best practice.  In looking, it seems that is not the case.  Although the wrong colors, the closest pic I could find to what I was looking for is attached.

https://www.google.com/search?q=roku+se ... vUr6e7wZpM:
 
User avatar
RokuKC
Posts: 313
Joined: Wed Sep 10, 2014 10:44 am
Location: Roku HQ

Re: Need buttons not bulleted list

Fri Jun 21, 2019 3:28 pm

I'm guessing you are looking for LabelList, not ButtonGroup.
See https://developer.roku.com/docs/referen ... bellist.md
 
User avatar
speechles
Posts: 167
Joined: Thu Aug 06, 2015 11:15 pm

Re: Need buttons not bulleted list

Fri Jun 21, 2019 8:18 pm

Yeah you cannot do that old SDKA behavior anymore in scene graph. That had the button left or button right. You could make your buttons align to either side. Now you can just build a label list and align however you want. Or even the check list or radio button list. You can then justify the button however you want. 

Plus.. those old SDKA buttons with the useless box on the right was just it's poor implementation of a bullet list with the bullets and text right justified. That is ugly isn't it? That isn't modern. That isn't forward looking. It arcs to by-gone era of yesterday. I think Roku wants users to abandon those old ugly templates. Not try to "reimagine" them in scene graph and remember them with nostalgia. Not much nostalgia left for those old screens. They look dated and deserved to be retired.

RIP SDKA. Long Live RSGA.
 
signal12
Topic Author
Posts: 7
Joined: Sat Jan 06, 2018 4:29 pm

Re: Need buttons not bulleted list

Sat Jun 22, 2019 11:54 am

RokuKC - Thanks - You are correct, LabelList is what I ended up going with

speechles - I think the "ugly button with the useless box on the right" is what I was actually looking for all this time.   Only because I have seen it in so many Roku apps as an end user.  Makes sense that  I could not find it in the documentation as it was left in the old SDK.

Thanks for your help.  I ended up with three LabelLists inside a LayoutGroup. All works well.

Who is online

Users browsing this forum: No registered users and 6 guests