Posts: 979
Joined: Sep 2013
Hi All,
I'm having a bit of a problem that I would really appreciate some help.
I am trying to use the grouplist Crontrol for an addon skin:
http://wiki.xbmc.org/?title=Group_List_Control
However I can not get it to autoscroll - it just sits there like a static control. My XML file is viewable here:
https://robwebset.googlecode.com/svn-his...deshow.xml
(There is only one grouplist, so a quick search will show it).
I have the "scrolltime" set as detailed in the wiki, but still nothing.
I would be very grateful of any help!
Thanks
Rob
P.S. Testing on Frodo at the moment.
Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
2014-05-24, 10:15
(This post was last modified: 2014-05-24, 10:20 by Hitcher.)
Scrolltime is used when scrolling through the grouplist, you're thinking of autoscroll but that's a Gotham feature and for lists only.
Posts: 979
Joined: Sep 2013
Thank you for taking the time to post a reply - I have tried the list option, but it doesn't seem to display anything (I'm not very good at this skin stuff), I have added a basic test - and it doesn't show anything (Unfortunately I can't get logging to work for skin display to see if there are any errors).
Code:
<control type="list" id="1345">
<posx>75</posx>
<posy>285</posy>
<width>490</width>
<height>390</height>
<itemlayout height="60" width="300">
</itemlayout>
<focusedlayout height="60" width="300">
</focusedlayout>
<content>
<item id="1">
<visible>true</visible>
<label>fred</label>
</item>
<item id="2">
<visible>true</visible>
<label>wilma</label>
</item>
</content>
</control>
Does this sort of thing look OK to you - am I doing something stupid?
Thanks
Rob
Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
Items need an <onclick>-</onclick> control in them to work.
Posts: 979
Joined: Sep 2013
2014-05-25, 16:23
(This post was last modified: 2014-05-25, 16:27 by robwebset.)
Thanks for the suggestion, but still nothing showing for me - I now have:
Code:
<control type="list" id="1345">
<posx>75</posx>
<posy>285</posy>
<width>490</width>
<height>390</height>
<itemlayout height="60" width="300">
</itemlayout>
<focusedlayout height="60" width="300">
</focusedlayout>
<content>
<item id="1">
<visible>true</visible>
<label>fred</label>
<onclick>-</onclick>
<icon>-</icon>
<thumb>-</thumb>
</item>
<item id="2">
<visible>true</visible>
<label>wilma</label>
<onclick>-</onclick>
<icon>-</icon>
<thumb>-</thumb>
</item>
</content>
</control>
BTW: Tried both with and without the itemlayout and focusedlayout elements
Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
Is that the exact code or have you removed the label controls for itemlayout and focusedlayout?
Posts: 979
Joined: Sep 2013
That is the exact code - but I have also tried it without the elements itemlayout and focusedlayout all together.
Posts: 979
Joined: Sep 2013
2014-05-25, 17:19
(This post was last modified: 2014-05-25, 17:20 by robwebset.)
That last comment gave me an idea - just tested - it looks like itemlayout and focusedlayout need to both have something in them ... and for it to be marked as visibale!
Does that sound right to you?
Thanks
Rob
Edit: Sorry typed this before I saw your last post!
Posts: 76
Joined: Jan 2013
Reputation:
6
The controls in the itemlayout and focusedlayout don't need to be marked visible explicitly, they are so by default. Also, you don't need to define the width of the layouts in lists if you're using <orientation>vertical</orientation> and you don't need to define the height if you're using <orientation>horizontal</orientation>.
Anyway, is it working now?
Posts: 979
Joined: Sep 2013
Hmm, I've now managed to get the label displayed - but the image isn't showing up - I have tried both icon and thumb - neither seem to display. (it's of the format http:// ....../.....jpg)
Rob
Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
Have you added the image control to itemlayout and focusedlayout?
Posts: 979
Joined: Sep 2013
Ah!! ... I just got it ... the penny have finally dropped.
You specify the "specification of what you want things to look like in the itemlayout" and then you populate it with the <content>.
Now it makes sense!
Thank you both for all your help - I will have a propper play with it now I understand a little bit more on how it is supposed to work!
Thanks
Rob