Your Digital Media Has Never Looked So Good

Topic Author
Posts: 1
Joined: Sat Feb 02, 2019 6:47 pm

Why the items in all the rows of row list are getting repeated in brightscript

Sat Feb 02, 2019 6:53 pm

[size=100][font=Arial, Helvetica Neue, Helvetica, sans-serif]I am trying to use rowlist which contain 3 rows. Each row will contain 11 items. But when it is getting [color=#242729][size=100][font=Arial, Helvetica Neue, Helvetica, sans-serif]displayed, after 11 items, again items are getting repeated in all the rows. [color=#242729][size=100][font=Arial, Helvetica Neue, Helvetica, sans-serif]Below are the XML files.[/font][/size][/color][/font][/size][/font][/size][/color]

<?xml version="1.0" encoding="utf-8" ?>
<component name="BrowseScreen" extends="Group">
        <!-- The main content -->
        <RowList id="BrowseRowList"
            translation="[70, 40]" />


    <script type="text/brightscript" uri="pkg:/components/BrowseScreen/BrowseScreen.brs"/>

<?xml version="1.0" encoding="utf-8" ?>

<component name="customItem" extends="Group">
        <Group id="itemCard" translation="[10, 10]" scale="[0.90, 0.90]"
               scaleRotateCenter="[125.0, 183.0]">

            <Poster id="itemPoster"
                loadDisplayMode="scaleToZoom" />

            <Group id="itemMetaGroup"
                translation="[0, 273]">

                <Rectangle id="itemMetaBG"
                    color="0x333333" />

                <Label id="itemMetaLabel"
                    translation="[20, 20]"
                    <Font role="font" uri="pkg:/fonts/Roboto-Bold.ttf" size="21" />

                <Label id="itemMetaData"
                    translation="[20, 60]"
                    <Font role="font" uri="pkg:/fonts/Roboto-Regular.ttf" size="21" />


    <script type="text/brightscript" uri="pkg:/components/Item/customItem.brs" />
    <script type="text/brightscript" uri="pkg:/components/Utils/itemType.brs" />

If I have 11 posters in each row, it is getting displayed as below
1 2 3 4 5 6 7 8 9 10 11 1 2 3 4 5 6 7 8 9 10 11 1 2 ...
I am unable to understand why the items are getting repeated. p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545; min-height: 14.0px}
Later on I realized that changing rowFocusAnimationStyle="floatingFocus" and variableWidthItems="[false]" will fix the problem. But I am having variable width items in the same row. So I am not sure how to fix this issue with variable width items in the same row and the items shouldn't repeat in the row.

I considered using postergrid for this. But I need to draw a line after each row. So I haven't used postergrid.

Can any one please let me know how to fix this issue.

Who is online

Users browsing this forum: No registered users and 8 guests