Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ashishMaz
Level 7

Button between label in Roku

Hi,

 I need to place button between  single label in Roku.
 Example :  Subscribe for only  "here button will come with text " per month.
 
 
0 Kudos
3 REPLIES 3
joetesta
Level 11

Re: Button between label in Roku

why does it need to be a single label?  you can make a small custom component widget that contains two labels plus one button-type object..
aspiring
0 Kudos
ashishMaz
Level 7

Re: Button between label in Roku

"joetesta" wrote:
why does it need to be a single label?  you can make a small custom component widget that contains two labels plus one button-type object..

But I need to change position of that button according to content . Button can be right,left or in middle, depend on content. 
0 Kudos
joetesta
Level 11

Re: Button between label in Roku

even more then you would not use a single label to do this.  you need to combine multiple components, set width to 0 and obtain computed width using boundingRect().width
aspiring
0 Kudos