armagedon79
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2015
02:21 PM
rolistscreen highlight image and color
i have this code and i need put highlight image and color in the text in rolist.
i need this conf:
ListItemHighlightHD pkg:/images/listitem_highlight_hd.png
ListItemHighlightSD pkg:/images/listitem_highlight_sd.png
ListItemHighlightText #CCCC00
ListItemText Gr Li Po #00CC00
ListScreenDescriptionText #00CC00
code
i need this conf:
ListItemHighlightHD pkg:/images/listitem_highlight_hd.png
ListItemHighlightSD pkg:/images/listitem_highlight_sd.png
ListItemHighlightText #CCCC00
ListItemText Gr Li Po #00CC00
ListScreenDescriptionText #00CC00
code
Function _DEBUG () As Boolean : Return True : End Function ' Return False in production code
' Main entry point
Sub Main ()
' Get main playlist index (can specify a local file or a url, and an optional timeout)
indexString = getPathToString ("pkg:/data/index.m3u8")
' Parse the index file returning a list of m3u8 playlist files
indexList = parseIndex (indexString)
' Display the list
displayIndexList (indexList)
End Sub
' Display a list of media items
Function displayIndexList (contentList As Object) As Void
app = CreateObject("roAppManager")
port = CreateObject ("roMessagePort")
ui = CreateObject ("roListScreen")
ui.SetMessagePort (port)
ui.SetContent (contentList)
ui.Show ()
While True
msg = Wait (0, port)
If Type (msg) = "roListScreenEvent"
If msg.IsScreenClosed ()
Exit While
Else If msg.IsListItemSelected ()
index = msg.GetIndex ()
displayItem (contentList [index])
Endif
Endif
End While
End Function
' Play an individual media item
Function displayItem (content As Object) As Void
port = CreateObject ("roMessagePort")
ui = CreateObject ("roVideoScreen")
ui.SetMessagePort (port)
ui.SetContent (content)
ui.Show ()
While True
msg = Wait (0, port)
logEvent ("displayItem", msg)
If Type (msg) = "roVideoScreenEvent"
print "showHomeScreen | msg = "; msg.getMessage() " | index = "; msg.GetIndex()
if msg.isScreenClosed()
print "Screen closed"
exit while
elseif msg.isRequestFailed()
print "Video request failure: "; msg.GetIndex(); " " msg.GetData()
elseif msg.isStatusMessage()
print "Video status: "; msg.GetIndex(); " " msg.GetData()
elseif msg.isButtonPressed()
print "Button pressed: "; msg.GetIndex(); " " msg.GetData()
elseif msg.isPlaybackPosition() then
nowpos = msg.GetIndex()
RegWrite(episode.ContentId, nowpos.toStr())
else
print "Unexpected event type: "; msg.GetType()
end if
else
print "Unexpected message class: "; type(msg)
end if
end while
End Function]
4 REPLIES 4

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2015
08:55 PM
Re: rolistscreen highlight image and color
Please see our docs on roAppManager and look at some examples of roAppManager themes in your RokuSDK download.
- Joel
- Joel
armagedon79
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2015
11:18 AM
Re: rolistscreen highlight image and color
Thanks joel, i have more Dummies question for same code
how to created table div in the list text?
how delete text or replacing with image this area ?

Thanks
how to created table div in the list text?
how delete text or replacing with image this area ?

Thanks

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2015
03:02 PM
Re: rolistscreen highlight image and color
That isn't possible using the SDK, however, you could create a large background image, 1280 pixels wide, if you wanted to create borders around the list items on the left. The only way to get rid of the text on the right side would be to set ShortDescriptionLine1 and shortDescriptionLine2 ="", and if you didn't want to do that for those items everywhere, you would have to make a copy of the Associative Arrays for each item (in other words, create a new AA and copy each element of those AA's into it, one element at a time), then set the two field to a null string.
- Joel
- Joel
mahesh01
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2015
01:18 AM
rolistscreen On Focused load Page/screen at place of image.
How to Create an application/channel for ROKU same UI(Design) and functionality as Roku OS.
Mean : In Left side a listview and in right side corresponding Page like gridview or roPosterScreen.
Mean : In Left side a listview and in right side corresponding Page like gridview or roPosterScreen.
