Solved Convert excisting List into Fixed list
#1
I'm currently tweaking the Amber skin and I've come quite far already but this is something I'm struggling with.
The AppTV skin has exactly what I'm looking for.
Image
And this is Amber
Image

I would love to make it so that the Selector is in a fixed position (in the middle)
I'm running Kodi 14.2 Helix and Amber 2.0.17

This is the part of the code in View_50.xml which handles the list
Code:
<control type="group">
      <visible>Control.IsVisible(50)</visible>
      <include>ContentFade</include>
      <control type="list" id="50">
        <viewtype label="535">List</viewtype>
        <posx>710</posx>
        <posy>406</posy>
        <width>1210</width>
        <height>648</height>
        <pagecontrol>60</pagecontrol>
        <onleft>9000</onleft>
        <onright>60</onright>
        <onup>50</onup>
        <ondown>50</ondown>
        <preloaditems>4</preloaditems>
        <include>List_Layout</include>
      </control>
Complete .xml file on the Github

This is the part of AppTV's code in View-Video.xml which handles the fixedlist
Code:
    <include name="VideoListView">
        <control type="fixedlist" id="50">
            <viewtype label="31941">list</viewtype>
            <left>668</left>
            <top>116</top>
            <width>555</width>
            <height>532</height>
            <focusposition>2</focusposition>
            <movement>4</movement>
            <onleft condition="Skin.HasSetting(lock-screensettings)">noop</onleft>
            <onleft condition="!Skin.HasSetting(lock-screensettings)">9000</onleft>
            <onright condition="StringCompare(Skin.String(show-scrollbar),$LOCALIZE[31877])">noop</onright>
            <onright condition="!StringCompare(Skin.String(show-scrollbar),$LOCALIZE[31877])">1250</onright>
            <onup>50</onup>
            <ondown>50</ondown>
            <preloaditems>2</preloaditems>
            <pagecontrol>1250</pagecontrol>
            <itemlayout width="575" height="66">
                        -- snip --
            <focusedlayout width="575" height="66">
                        -- snip --
        </control>

I've been messing around, trying multiple things, reading the wiki over and over again but I just can't get it to work.
Would be great if someone here could point me in the right direction.
Reply
#2
You've basically answered your own question. Wink

Change
Code:
control type="list"
to
Code:
control type="fixedlist"
Then add the
Code:
<focusposition>2</focusposition>
you want and if you want it to move when it reaches the ends add
Code:
<movement>4</movement>
Reply
#3
That's what I thought as well but it disables the view mode

edit: Oh wow, nevermind.
It switched to the next view mode on reload so I thought changing the code broke something.
I just tried switching to the original List mode again and it works. Dôh

Code:
        <focusposition>4</focusposition>
          <movement>4</movement>
Does exactly what I want.
Thank you Hitched, without your answer and me trying the same thing I already tried again I probably wouldn't have figured out I just had to switch to the List layout again.
Reply

Logout Mark Read Team Forum Stats Members Help
Convert excisting List into Fixed list0