Kodi Community Forum

Full Version: probleme slide défilement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Image

Hello community
Can you help me understand a problem.
When I scroll articles movie in this view that I built in that time, the slide go on the right when I scroll right and left when I go left. Why there is not at the center?

cheers
Could you post the code, please?
Sorry Wink



PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<includes>
<include name="viewStripFanartPoster-ContainerCommons">                
        <control type="group">                
            <control type="image">
                <posx>85</posx>
                <posy>25</posy>
                <width>1250</width>
                <height>690</height>                        
                <texture border="50">overlays/panel.png</texture>                    
            </control>
        <control type="group">
                 <left>450</left>
                 <top>135</top>
            <control type="image">
                    <width>815</width>
                    <height>450</height>
                    <texture background="true">thumbs/default_Landscape.png</texture>
                    <aspectratio align="center">stretch</aspectratio>
            </control>
            <control type="image">
                    <left>310</left>
                    <top>100</top>
                    <width>250</width>
                    <height>250</height>
                    <include>art_DefaultIcon</include>
            </control>
            <control type="image">
                    <width>815</width>
                    <height>450</height>
                    <texture background="true" diffuse="overlays\Landscape-diffuse2.png" >$VAR[thumb_Landscape]</texture>
                    <aspectratio align="center" aligny="top">scale</aspectratio>
            </control>
            <control type="image">
                    <centerleft>410</centerleft>
                    <top>300</top>
                    <width>289</width>
                    <height>112</height>
                    <include>art_ClearLogo</include>
            </control>
        </control>
        <control type="group">
                    <left>1080</left>
                    <top>300</top>                
            <control type="group">
                    <left>157</left>
                    <top>254</top>
                    <include>status_Info</include>
                    <visible>Skin.HasSetting(overlay_statu.disable)</visible>
            </control>
            <control type="group">
                    <left>152</left>
                    <top>250</top>
                    <width>32</width>
                    <height>32</height>
                    <visible>Skin.HasSetting(watched.alternative)</visible>                    
                <control type="image">
                    <info>ListItem.Overlay</info>
                </control>
            </control>
                <control type="label">
                    <label>$INFO[ListItem.Label]</label>
                    <left>180</left>
                    <top>-195</top>
                    <align>right</align>
                    <width>600</width>
                    <include>detail_Title</include>
                </control>
                <control type="label">
                        <left>772</left>
                        <label>$INFO[Container(597).ListItem(1).Label]</label>
                        <width>770</width>
                        <include>detail_Title</include>
                        <animation effect="fade" start="100" end="30" time="0" condition="true">Conditional</animation>
                </control>
                <control type="label">
                        <left>180</left>
                        <top>290</top>
                        <align>right</align>                        
                        <label>$VAR[gallery_Header]</label>
                        <width>772</width>
                        <textcolor>Color1</textcolor>
                        <include>detail_Title</include>
                </control>
            <control type="group">
                <control type="image">
                        <left>-930</left>
                        <top>-165</top>
                        <width>128</width>
                        <height>32</height> 
                        <texture>$VAR[global_Rating]</texture>
                        <aspectratio align="center">keep</aspectratio>
                        <visible>!Container.Content(files)</visible>
                </control>
            </control>
                <control type="group">
                         <left>-930</left>
                        <top>-195</top>
                    <control type="label">
                            <width>400</width>
                            <label>$VAR[global_Info]</label>
                            <include>detail_Sub</include>
                            <align>left</align>        
                            <visible>![Container.Content(addons) | Container.Content(programs)]</visible>
                    </control>
                    <control type="label">
                            <width>960</width>
                            <label>$LOCALIZE[19114] $INFO[ListItem.Property(Addon.Version),, • ]$LOCALIZE[31144] $INFO[ListItem.Property(Addon.Creator)]</label>
                            <include>detail_Sub</include>
                            <visible>[Container.Content(addons) | Container.Content(programs)]</visible>
                    </control>
                </control>
        </control>
            
             <!--info strip fanart 1-->                    
                <control type="group">
                           <left>153</left>
                            <top>25</top>                            
                    <control type="textbox">                        
                            <top>155</top>
                            <width>290</width>
                            <align>justify</align>
                            <height max="350">auto</height>
                            <label>$VAR[global_Plot]</label>
                            <include>detail_Text</include>
                    </control>                    
                    <control type="image">                             
                            <left>-5</left>
                            <top>515</top>
                            <width>100</width>
                            <height>70</height>
                            <aspectratio align="left">keep</aspectratio>
                            <texture>$VAR[flag_Studio]</texture>                
                            <visible>[Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)]</visible>
                    </control>
                            <visible>!Skin.HasSetting(stripfanartinfo1.enable)</visible>    
                </control>
            
                        
                <!--info strip fanart 2-->                    
                <control type="group">
                    <left>153</left>
                    <top>25</top>                            
                <control type="textbox">                        
                    <top>155</top>
                    <width>290</width>
                    <align>justify</align>
                    <height max="160">auto</height>
                    <label>$VAR[global_Plot]</label>
                    <include>detail_Text</include>
                </control>
                <control type="image">
                    <top>330</top>
                    <left>115</left>
                    <width>170</width>
                    <height>230</height>
                   <texture background="true">$VAR[thumb_Portrait]</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="image">                             
                    <left>-5</left>
                    <top>515</top>
                    <width>100</width>
                    <height>70</height>
                    <aspectratio align="left">keep</aspectratio>
                    <texture>$VAR[flag_Studio]</texture>                
                    <visible>[Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons)]</visible>
                    </control>
                    <visible>Skin.HasSetting(stripfanartinfo2.enable)</visible>    
                </control>
                  
                <!--info strip fanart 3-->                    
                <control type="group">
                <left>153</left>
                <top>25</top>
                <control type="textbox">                        
                    <top>155</top>                    
                    <width>290</width>
                    <align>justify</align>
                    <height max="210">auto</height>
                    <label>$VAR[global_Plot]</label>
                    <include>detail_Text</include>
                </control>                    
                <control type="image">
                <top>403</top>                
                <width>280</width>
                <height>158</height>
                <texture background="true">$VAR[view_Extra.Thumb3]</texture>
                <aspectratio>stretch</aspectratio>
                </control>
                    <visible>Skin.HasSetting(stripfanartinfo3.enable)</visible>    
                </control>
                <!--info strip fanart 4-->                    
                <control type="group">
                <control type="image">
                <top>185</top>
                <left>150</left>
                <width>267</width>
                <height>400</height>
                <texture background="true">$VAR[thumb_Portrait]</texture>
                <aspectratio>stretch</aspectratio>
                </control>
                    <visible>Skin.HasSetting(stripfanartinfo4.enable)</visible>    
                </control>
        </control>
</include>

<include name="detail_StripFanart">
        <control type="group">        
                <include>transition_Info</include>
                <include>toggle_Menu</include>
                <include>transition_Content</include>
                <visible>Control.IsVisible(597)</visible>        
        <control type="grouplist">
                <top>670</top>
                <left>570</left>
                <width>600</width>
                <height>40</height>
                <itemgap>10</itemgap>
                <orientation>horizontal</orientation>            
            </control>            
        </control>
</include>

<!--PORTRAIT-->
    <include name="view_StripFanart">    
        <control type="wraplist" id="597">        
            <viewtype label="StripFanart">list</viewtype>            
            <left>-60</left>
                <top>50</top>
            <width>1900</width>
            <height>800</height>             
            <onup>6000</onup>
            <ondown>71</ondown>
            <onleft>597</onleft>
            <onright>597</onright>            
            <pagecontrol>71</pagecontrol>
            <orientation>horizontal</orientation>
            <include>global_Scrolltime</include>            
            <include>transition_Info</include>
            <include>toggle_Menu</include>                    
            <visible>Container.Content(movies) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(sets)</visible>
            <preloaditems>0</preloaditems>
            <focusposition>0</focusposition>
            <itemlayout width="1280">
            <include>viewStripFanart-ContainerCommons</include>
            </itemlayout>
            <focusedlayout width="1280">        
            <include>viewStripFanartPoster-ContainerCommons</include>            
            </focusedlayout>
        </control>        
    </include>
</includes> 
Try to make the width of itemlayout and focusedlayout the same as the width of the screen.
Also add <centerleft>50%</centerleft> in the main group inside your viewStripFanartPoster-ContainerCommons include.

See if that puts your controls in the centre.
Thx you Wink

i try this