Req How to add a space between 2 <item>?
#1
Video 
Is it possible to create a small space between 2 <item> (without inserting an empty <item>) inside a <content>?

this is the code:

<content>
  <item>
    <label>$LOCALIZE[20074]:</label>
    <label2>$INFO[ListItem.mpaa]</label2>
    <visible>!String.IsEmpty(ListItem.mpaa)</visible>
 </item>
 <item>
    <label>Cast:</label>
    <label2>$INFO[ListItem.Cast]</label2>
    <visible>!String.IsEmpty(ListItem.Cast)</visible>
 </item>
</content>

For example (but it doesn't work):

<content>
  <item>
    <label>$LOCALIZE[20074]:</label>
    <label2>$INFO[ListItem.mpaa]</label2>
    <visible>!String.IsEmpty(ListItem.mpaa)</visible>
 </item>
<br></br>
 <item>
    <label>Cast:</label>
    <label2>$INFO[ListItem.Cast]</label2>
    <visible>!String.IsEmpty(ListItem.Cast)</visible>
 </item>
</content>


Maybe increasing the height of the label above ...? (I can't get it to work)

Why does such a thing come:
[I would like to avoid it (adding a very small space or other)]

Image

Any help would be appreaciatted.
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi 20.x stable release | Skin Confluence (by Jezz_X)
I like editing skins ❤
Reply
#2
That sort of a layout is best achieved using a grouplist and not a normal list. That way you have control of the spacing between the items using <itemgap> or by adding an empty control group with a set height:-

xml:
<control type="grouplist">
  <left>0</left>
  <top>0</top>
  <width>600</width>
  <height>600</height>
  <orientation>vertical</orientation>
  <itemgap>16</itemgap>

  <!-- Line 1 -->
  <control type="label">
    <!--- your label content -->
  </control>

  <!-- Line 2 -->
  <control type="label">
    <!--- your label content -->
  </control>

  <!-- some amount of spacing -->
  <control type="group">
    <height>32</height>
  </control>

  <!-- Line 3 -->
  <control type="label">
    <!--- your label content -->
  </control>
</control>
Reply
#3
@roidy

Unfortunately it doesn't work, I think I can't use the grouplist inside another <control type = "list">.

in any case the block code is this:
How can i adapt it?

xml:
<control type="list" id="49">
                        <left>290</left>
                        <top>-4</top>
                        <width>740</width>
                        <height>390</height>
                        <onleft>49</onleft>
                        <onright>49</onright>
                        <onup>9000</onup>
                        <ondown>61</ondown>
                        <pagecontrol/>
                        <scrolltime>200</scrolltime>
                        <itemlayout height="30">
                            <control type="label">
                                <left>5</left>
                                <top>0</top>
                                <width>160</width>
                                <height>30</height>
                                <font>font13</font>
                                <align>right</align>
                                <aligny>center</aligny>
                                <textcolor>blue</textcolor>
                                <selectedcolor>selected</selectedcolor>
                                <info>ListItem.Label</info>
                            </control>
                            <control type="label">
                                <left>175</left>
                                <top>0</top>
                                <width>565</width>
                                <height>30</height>
                                <font>font13</font>
                                <align>left</align>
                                <aligny>center</aligny>
                                <textcolor>white</textcolor>
                                <selectedcolor>white</selectedcolor>
                                <info>ListItem.Label2</info>
                            </control>
                        </itemlayout>
                        <focusedlayout height="30">
                            <control type="image">
                                <left>0</left>
                                <top>0</top>
                                <width>740</width>
                                <height>30</height>
                                <visible>Control.HasFocus(49)</visible>
                                <texture>MenuItemFO.png</texture>
                                <include>VisibleFadeEffect</include>
                            </control>
                            <control type="label">
                                <left>5</left>
                                <top>0</top>
                                <width>160</width>
                                <height>30</height>
                                <font>font13</font>
                                <align>right</align>
                                <aligny>center</aligny>
                                <textcolor>blue</textcolor>
                                <selectedcolor>selected</selectedcolor>
                                <info>ListItem.Label</info>
                            </control>
                            <control type="label">
                                <left>175</left>
                                <top>0</top>
                                <width>565</width>
                                <height>30</height>
                                <font>font13</font>
                                <align>left</align>
                                <aligny>center</aligny>
                                <textcolor>white</textcolor>
                                <selectedcolor>white</selectedcolor>
                                <info>ListItem.Label2</info>
                            </control>
                        </focusedlayout>
                        <content>
                            <item>
                                <label>$LOCALIZE[20376]:</label>
                                <label2>$INFO[ListItem.OriginalTitle]</label2>
                                <visible>!String.IsEmpty(ListItem.OriginalTitle) + !String.IsEqual(ListItem.OriginalTitle,Listitem.Title)</visible>
                            </item>
                            <item>
                                <label>$LOCALIZE[203]:</label>
                                <label2>$INFO[ListItem.PlotOutline]</label2>
                                <visible>!String.IsEmpty(ListItem.PlotOutline)</visible>
                            </item>
                            <item>
                                <label>$LOCALIZE[20074]:</label>
                                <label2>$INFO[ListItem.mpaa]</label2>
                                <visible>!String.IsEmpty(ListItem.mpaa)</visible>
                            </item>

                          <!-- space was needed at this point -->

                            <item>
                                <label>Cast:</label>
                                <label2>$INFO[ListItem.Cast]</label2>
                                <visible>!String.IsEmpty(ListItem.Cast)</visible>

                            </item>
                           
                        </content>
</control>


Thanks for your help 🙏
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi 20.x stable release | Skin Confluence (by Jezz_X)
I like editing skins ❤
Reply
#4
No, you use the grouplist instead of the list, not inside the list.
Reply
#5
ok, now i got it to work, anyway i lose a lot of formatting, sure there isn't a better way to adapt?

Moreover I am going to lose all the formatting of the previous blocks, impossible to implement in this way.
There is nothing that can create thickness?

Thanks all the same for the help.
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi 20.x stable release | Skin Confluence (by Jezz_X)
I like editing skins ❤
Reply
#6
I found this solution, if it is possible to extract the cast name from the label individually.


@Hitcher were you able to get this code to work?

$INFO[ListItem.Cast(, )]    Actor 1, Actor 2, Actor 3, Actor 4       and        $INFO[Container(50).ListItem(0).Label]

@Hitcher from your thread: https://forum.kodi.tv/showthread.php?tid...pid1844543

this code in this way does not work: $INFO[ListItem.Cast(, )]


To be able to have the list of actors by row and not by column?


Thanks for your help, always appreciated 🙏
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi 20.x stable release | Skin Confluence (by Jezz_X)
I like editing skins ❤
Reply
#7
No, that was just a request.
Reply
#8
Ok thanks anyway.
If i helped you, you can thank me with a thumbs up 👍 below, thanks 🙏.
Kodi 20.x stable release | Skin Confluence (by Jezz_X)
I like editing skins ❤
Reply

Logout Mark Read Team Forum Stats Members Help
How to add a space between 2 <item>?0