Kodi Community Forum

Full Version: Bouncy fixedlist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings!

Hope a more experienced skinner can help me suss out an issue that has me stumped. I converted a control type from list to fixedlist and it does not behave correctly. When the focus position is reached the list does scroll but the button lurches one position in the scroll direction before settling back to the focus position; if that makes any sense.

I've fought this for hours with no luck. Please, if you have any thoughts on the subject, I would love to hear them.

Here's the hunk of code:

Code:
<control type="group" description="Slider and List">
                <posx>1030</posx>
                <posy>141</posy>
                <control type="fixedlist" id="50">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>830</width>
                    <height>892</height>
                    <onleft>9000</onleft>
                    <onright>70</onright>
                    <onup>50</onup>
                    <ondown>50</ondown>
                    <pagecontrol>70</pagecontrol>
                    <focusposition>4</focusposition>
                    <movement>4</movement>
                    <preloaditems>4</preloaditems>
                    <viewtype label="537">Big List 50</viewtype>
                    <scrolltime easing="inout" tween="sine">280</scrolltime>  
                    <itemlayout height="99">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <height>99</height>
                            <width>830</width>
                            <texture flipy="true" border="3">img/ListNF.png</texture>
                        </control>
                        <control type="image" description="TV Logo">
                            <posx>700</posx>
                            <posy>0</posy>
                            <width>90</width>
                            <height>90</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label" description="Number">
                            <left>0</left>
                            <height>99</height>
                            <width>80</width>
                            <align>center</align>
                            <aligny>center</aligny>
                            <info>ListItem.ChannelNumber</info>
                        </control>
                        <control type="label" description="Main Label">
                            <posx>126</posx>
                            <height>55</height>
                            <width>600</width>
                            <scroll>false</scroll>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="label" description="Label2">
                            <posx>126</posx>
                            <posy>35</posy>
                            <height>60</height>
                            <font>size18</font>
                            <width>600</width>
                            <scroll>false</scroll>
                            <textcolor>Grey</textcolor>
                            <label>$INFO[ListItem.Title]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout height="99">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <height>99</height>
                            <width>830</width>
                            <texture flipy="true" border="3">img/ListNF.png</texture>  <!--   -->
                        </control>
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>830</width>
                            <height>99</height>
                            <texture>img/MediaButton2.png</texture>
                        </control>
                        <control type="image" description="TV Logo">
                            <posx>700</posx>
                            <posy>0</posy>
                            <width>90</width>
                            <height>90</height>
                            <texture>$INFO[ListItem.Icon]</texture>
                            <aspectratio>keep</aspectratio>
                        </control>
                        <control type="label" description="Number">
                            <left>0</left>
                            <height>99</height>
                            <width>80</width>
                            <align>center</align>
                            <aligny>center</aligny>
                            <info>ListItem.ChannelNumber</info>
                        </control>
                        <control type="label" description="Main Label">
                            <posx>126</posx>
                            <height>55</height>
                            <width>600</width>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                        <control type="label" description="Label2">
                            <posx>126</posx>
                            <posy>35</posy>
                            <height>60</height>
                            <font>size18</font>
                            <width>600</width>
                            <textcolor>White2</textcolor>
                            <label>$INFO[ListItem.Title]</label>
                        </control>
                    </focusedlayout>
                </control>
            </control>

Thanks!
Well the height isn't correct for 9 x 99px items. It should be 891.
Good catch Hitcher. Unfortunately, no change in behavior.

This link shows the problem I'm having:

Animated gif
Change the scrolltime to 0 or place the focus texture as a image overlay outside of the fixedlist control and move it with conditional slide animations.
(2016-08-29, 00:24)661_ Wrote: [ -> ]Good catch Hitcher. Unfortunately, no change in behavior.

This link shows the problem I'm having:

Animated gif

That's the correct behaviour.
Quote:That's the correct behaviour.

Odd to hear you say that because in every other fixedlist I've seen the focus texture never budges once in the focus position.

I reckon something like sualfred's suggestion is usually implemented to mitigate the jarring animation. Will give it a try, though not sure I fully comprehend...

Thank you both!
It's moving onto the next item and because the list has a scroll time set you see that effect.
(2016-08-29, 10:00)sualfred Wrote: [ -> ]Change the scrolltime to 0 or place the focus texture as a image overlay outside of the fixedlist control and move it with conditional slide animations.

Thank you! Changing scrolltime did the trick. Not as fluid as I would like but good enough until I can figure out your other option.