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: 
jeswin
Visitor

Rowlist - showRowCounter is not working

Hi,

I am developing an app,
I am using Rowlist and binded all the items correctly
My problems are

1. I have given showRowCounter = "[true]" but its not showing the row counter at the top
2. I have 2 sections, in one section i have only 2 items so it displays correctly inside the focus bitmap image, but the next section nearly contatins 35 items, the focusbitmap image is little pushed right of the items.
3. Label at the bottom of each item is hiding half, if i increase rowitemsize i can able to see the text below each items but the focusbitmap image is covering the text area also.
Kindly help me,

Please refer the blow codes i have used:

Rowlist.xml
<RowList
      id = "RowList"
      itemComponentName = "RowListItem"
      numRows = "5"
      itemSize = "[ 1608, 275 ]"
      rowItemSize = "[ [294, 178] ]"
      rowItemSpacing="[[10, 0] ]"
      itemSpacing = "[0, 0 ]"
      showRowLabel = "[ true ]"
      showRowCounter="[ true ]"
      drawFocusFeedback = "true"
      drawFocusFeedbackOnTop="true"
      focusBitmapUri="pkg:/images/focus_ring_hd_290.png"
      rowLabelColor="0xffffffff"
      vertFocusAnimationStyle = "fixedFocus"
      rowFocusAnimationStyle = "fixedFocusWrap" />


RowlistitemXML
<Poster 
      id = "itemPoster" 
      translation = "[ -5, 15 ]" 
      width = "266" 
      height = "150" 
      loadDisplayMode="scaleToZoom"
      scaleRotateCenter = "[0, 0 ]" >

      <Rectangle 
        id = "itemMask" 
        translation = "[ -5, 15 ]" 
        width = "266" 
        height = "150" 
        scaleRotateCenter = "[ 0,0 ]" 
        color = "000" 
        opacity = "1" />

    </Poster>

    <Label 
      id = "itemLabel" 
      translation = "[ 0, 170 ]"
      width = "266"
      horizAlign = "left" 
      opacity = "1" />



Note: I didn't mention anything in brs except feeding the content.
0 Kudos
3 REPLIES 3
Adhiraj279
Visitor

Re: Rowlist - showRowCounter is not working

just remove the brackets from "[true]"
0 Kudos
jeswin
Visitor

Re: Rowlist - showRowCounter is not working

thanks for your reply.. 

The code which i have wrote is correct and working. The thing is i have given the item size as [1608,275] so the show row counter label went off the screen While i reduce the size i mean the width of the item size i can able to see it.
0 Kudos
Adhiraj279
Visitor

Re: Rowlist - showRowCounter is not working

great!!! 😄
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.