Select first item from list
#1
Hi,

Imagine I've build up a list container with several items.

Is it possible to do something like this:
Code:
<itemlayout>
    <control type="image">
        <posx>100</posx>
        <posy>0</posy>
        <width>100</width>
        <height>100</height>
        <aspectratio>keep</aspectratio>
        <texture>$INFO[ListItem(1).ActualIcon]</texture>
    </control>
<itemlayout>

Ie I want to select and display only the first item in the list. Obviously the above segment doesn't work.

Container().ListItem(1).ActualIcon doesn't seem to work either.
Reply
#2
place the image outside of the container and it'll work.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Hmm. OK. So I can build an abstract list (no itemlayout, focusedlayout, posx, posy, widht, height etc) and then pull in item(s) from that list elsewhere. I'll play around and see if it works...
Reply
#4
Got it working! Thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Select first item from list0