Kodi Community Forum

Full Version: Problem with fixed list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm doing a skin based on wmc and am facing a problem with a fixed list.
The problem with spacing as hap rolls the items in the image:

Image
Image

I wish that were equal spacing between the itens focused and unfocused

The code of fixedlist:

Code:
<control type="fixedlist" id="9000">
                <description>Aba</description>
                <posx>80</posx>
                <posy>-50</posy>
                <width>750</width>
                <height>150</height>
                <onleft>9000</onleft>
                <onright>9000</onright>
                <onup>9001</onup>
                <ondown>9001</ondown>
                <pagecontrol>-</pagecontrol>
                <scrolltime>400</scrolltime>
                <focusposition>0</focusposition>
                <movement>0</movement>
                <orientation>Horizontal</orientation>
                <itemlayout height="56" width="150">
            <control type="label">
                <description>Aba sem foco</description>
                <posx>-60</posx>
                <posy>23</posy>
                <width>300</width>
                <height>84</height>
                <font>Segoe Media Center Light30</font>
                <textcolor>FFFFFFFF</textcolor>
                <align>left</align>
                <label>$INFO[ListItem.Label]</label>
            </control>
                </itemlayout>
                <focusedlayout height="84" width="361">
                    <description>Aba com foco</description>
                    <control type="label">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>500</width>
                        <height>84</height>
                        <font>Segoe Media Center Light50</font>
                        <textcolor>FFCCCCCC</textcolor>
                        <align>left</align>
                        <label>$INFO[ListItem.Label]</label>
                    </control>
                </focusedlayout>
                <content>
                    <item id="1">
                        <label>informacões</label>
                        <onclick>ActivateWindow()</onclick>
                        <icon></icon>
                        <thumb></thumb>
                    </item>
                    <item id="2">
                        <label>descrição</label>
                        <onclick>ActivateWindow()</onclick>
                        <icon></icon>
                        <thumb></thumb>
                    </item>
                    <item id="3">
                        <label>registro de mudanças</label>
                        <onclick>SendClick(10)</onclick>
                        <icon></icon>
                        <thumb></thumb>
                    </item>
                </content>
            </control>

thanks!
<itemlayout height="56" width="150">
<focusedlayout height="84" width="361">

Unless every label is around the same width you'll run into this problem. Only way as of now to keep same spacing between buttons is using the auto-sizing property of labels. Where you have a set of horizontal buttons hidden then use a grouplist of labels referencing those buttons so they can use the auto-size feature of labels to keep the spacing the same between them...

.xml example

Line 630 is the group of buttons
Line 711 is the grouplist of labels
It's not possible even with auto-sized labels. It wouldn't scroll as intended... and it's not possible to add animations because the label width is unknown and you can't have dynamic values in an animation (yet).
Thank you for responding!
So in this case the only way I would put on labels, names that have sizes equal to or very near or limit the size of the labels in a fixed size in (itemlayout and focusedlayout).

I believe this can be bad to translate the strings into another language, but if there is another solution remained so even!

Thank you again, black and macborzu!
You have to use a group list but the focus position won't be fixed.
Yeah I did a test with grouplist but the movement and focus position of the menu is not equal as you mentioned.
In this case I prefer the movement and appearance of the menu.

thanks again!
hey! any luck finishing this skin? also could you share this skin with me! it is my dream to use kodi while looking like windows media center. i have had no luck!