Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ashishMaz
Visitor

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
Roku Guru

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
Visitor

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
Roku Guru

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.