<?xml version="1.0" encoding="utf-8" ?>
<component name="HomeScreen" extends="Group">
<script type="text/brightscript" uri="pkg:/components/screens/HomeScreen/HomeScreen.brs" />
<interface>
<field id="playlists" type="node"/>
</interface>
<children>
<RowList
id="videoList"
visible="false"
itemComponentName="PosterItemHero"
itemSize = "[1920, 785]"
rowItemSize = "[[1400, 785]]"
focusXOffset = "[262]"
showRowLabel="false"
showRowCounter="false"
rowFocusAnimationStyle="fixedFocusWrap"
failedBitmapUri="pkg:/images/placeholder-image.png"
focusBitmapUri="pkg:/images/9-patch/focus_thumbnail_home.9.png"
translation="[0, 38]" />
</children>
</component>
"BCVatOVG" wrote:
I don't get it...I don't see the use of loadingBitmapUri in your XML.
<?xml version="1.0" encoding="utf-8" ?>
<component name="HomeScreen" extends="Group">
<script type="text/brightscript" uri="pkg:/components/screens/HomeScreen/HomeScreen.brs" />
<interface>
<field id="playlists" type="node"/>
</interface>
<children>
<RowList
id="videoList"
visible="false"
itemComponentName="PosterItemHero"
itemSize = "[1920, 785]"
rowItemSize = "[[1400, 785]]"
focusXOffset = "[262]"
showRowLabel="false"
showRowCounter="false"
rowFocusAnimationStyle="fixedFocusWrap"
loadingBitmapUri ="pkg:/images/placeholder-image.png"
focusBitmapUri="pkg:/images/9-patch/focus_thumbnail_home.9.png"
translation="[0, 38]" />
</children>
</component>
"BCVatOVG" wrote:
But I do see one mistake on line 20
showRowLabel = "false"
It's supposed to be an array of boolean
https://sdkdocs.roku.com/display/sdkdoc/RowList
"Specifies whether the row label on the left edge of each row is displayed. If the array contains fewer elements than the number of rows in the data model, the last value in array is used to control the display of the row label for the extra rows. If the array contains no values, no row labels are displayed."
So try:
showRowLabel = "[false]"
and see if that works. I suspect you are setting loadingBitmapUri in HomeScreen.brs but because it can't load the XML RowList component, you don't actually get a correct RowList node is my best guess.
m.videoList.loadingBitmapUri = "pkg:/images/placeholder-image.png"
<?xml version="1.0" encoding="utf-8" ?>
<component name="SimpleRowListScene" extends="Scene" >
<script type="text/brightscript" >
<![CDATA[
function init()
m.theRowList = m.top.FindNode("theRowList")
' m.theRowList2 = m.top.FindNode("theRowList2")
m.theRowList.SetFocus(true)
end function
]]>
</script>
<children>
<!-- This Causes an Error -->
<!--
=================================================================
Error creating XML component SimpleRowListScene
Error setting the "loadingBitmapUri" field of a "RowList" node
Error found at line 19 of file pkg:/components/SimpleRowListScene.xml
=================================================================
-->
<SimpleRowList
id="theRowList"
loadingBitmapUri="pkg:/images/MainMenu_Icon_Side_SD43.png"
translation="[50,50]" />
</children>
</component>