cesarcarlos
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023
10:12 AM
Showing the rating badge in a label
Is there a way of showing the rating badge in a label?
I want a string the appear below the title of the video in the details screen with the format duration/year/rating (for example: "23:45 | 2021 | PG-13" , where PG-13 should be the badge).
I have the rating field set in the content and the following in brightscript:
m.detailsLabel.text = content.duration + " | " + content.year + " | " + content.rating
But it's just rendered as text.
1 REPLY 1
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023
10:33 AM
Re: Showing the rating badge in a label
Labels can only contain text. If you want to show a badge you'd have to add Poster over the label adjusting its position based on the length of the other text. I don't even know if Roku makes the badges available or if you have to package the graphics with your channel.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.