A bit of help needed with a fixedlist
#1
Greetings,

I'm looking to work a fixedlist such that, if the number of items is large (say 10+) then set the focussed position at 4, else leave it at 1.

I've tried a number of ways around this, using integerGreaterThan(Container.numItems,5) as the condition of an include (see below). No joy :-(

Any suggestions?

Cheers,
theDeadman.

Code:
<control type="fixedlist" id="50">
                <visible>!container.content(seasons) + !container.content(episodes)</visible>    
                                    
                <posx>col-1-start</posx>
                <posy>row-10</posy>
                <width>col-8-gutter</width>
                <height>350</height>
                <onup>9008</onup>
                <onleft>9008</onleft>
                <onright>9008</onright>
                
<include condition="IntegerGreaterThan(Container.numItems,5)"><focusposition>4</focusposition></include>
            
                <movement>10</movement>
                <ondown>50</ondown>
                <scrolltime>200</scrolltime>
                <viewtype>list</viewtype>
                                
                <itemlayout width="col-8-gutter" height="35">
Reply
#2
if i remember correctly, the include condition is evaluated (at WindowOpen) before the list is filled with content.

...so that won't 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
I would try with 2 lists and check:

<visible>IntegerGreaterThan(Container.numItems,5)"></visible>
My skins:

Amber
Quartz

Reply
#4
pecinko Wrote:I would try with 2 lists and check:

<visible>IntegerGreaterThan(Container.numItems,5)"></visible>

i knew i did remember something, so did a bit of searching:
http://forum.xbmc.org/showthread.php?tid=60586
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
#5
ronie Wrote:i knew i did remember something, so did a bit of searching:
http://forum.xbmc.org/showthread.php?tid=60586

Hahaha, so did I:

http://forum.xbmc.org/showthread.php?tid...=fixedlist


Haven't tried it myself.
My skins:

Amber
Quartz

Reply
#6
Sliding lists based on conditions screws up when you fast scroll mind and looks messy.
Reply
#7
Hmm, food for thought. Tried a few more ideas, but Ronie is right.

The problem I'm trying to fix seems to have been well covered, thanks for pointing those threads out.

Might have to put that one on the back burner for a bit I guess :-)

Thanks as ever!
theDeadMan.
Reply
#8
Having said that...

From a usability perspective, I do feel that the functionality offered by <focussed position> and <movement> that provides a sense of history in fixed lists is really important.

For the benefit of others arriving at this thread...
Functionally, it works well enough in most cases, but borks visually when the item count is small (at which point the list drops to the focus position value). I see from the threads pointed out earlier that a solution never was reached for this.

Would others back me up if I raise a ticket for this?
Reply
#9
I will. But you would need support from JM if you would like to pull it up.

EDIT: there's another thing that will be most welcomed _especialy_ in this container. Smooth scrolling. I tried a lot of animations but was unable to pull this with satisfactory results. Haven't got time to try it, but obsolete buttonscroller seams to had this. Jumpy cursor button is not pleasant for the eyes.
My skins:

Amber
Quartz

Reply
#10
as pecinko suggested in this thread:
http://forum.xbmc.org/showthread.php?tid=97203

i for one would welcome the addition of <aligny>
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
#11
Ticket opened: #11560
Reply

Logout Mark Read Team Forum Stats Members Help
A bit of help needed with a fixedlist0