2018-10-09, 12:36
Hi guys,
I hope I can explain it good what I am looking for:
I made a new page and I put icons ith horizontal order and every icon with item layout shape is 150x150 px size and when i focus on it I made it 210x210 px. it works and fine but I need when focus to maintain the distance between icons..How can I do it?
here is what I did:
<control type="panel" id="2">
<posx>70</posx>
<posy>27</posy>
<height>720</height>
<width>1280</width>
<onup>2</onup>
<ondown>2</ondown>
<onleft>2</onleft>
<onright>2</onright>
<focusposition>2</focusposition>
<orientation>horizontal</orientation>
<itemlayout width="230" height="230">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>150</height>
<texture>white.jpg</texture>
</control>
<control type="label">
<posx>128</posx>
<posy>110</posy>
<width>128</width>
<height>20</height>
<label>$INFO[ListItem.label]</label>
<align>center</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>black</textcolor>
<scroll>true</scroll>
<visible>false</visible>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>150</height>
<colordiffuse></colordiffuse>
<texture>$INFO[ListItem.ActualIcon]</texture>
</control>
</itemlayout>
<focusedlayout width="230" height="230">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>210</width>
<height>210</height>
<texture>white.jpg</texture>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>210</width>
<height>210</height>
<texture>blue.png</texture>
</control>
<control type="image">
<posx>0</posx>
<posy>191</posy>
<width>210</width>
<height>40</height>
<texture>blue.png</texture>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>210</width>
<height>210</height>
<texture>$INFO[ListItem.ActualIcon]</texture>
</control>
<control type="label">
<posx>0</posx>
<posy>210</posy>
<width>210</width>
<height>20</height>
<label>$INFO[ListItem.label]</label>
<align>center</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>yellow</textcolor>
<visible>true</visible>
</control>
</focusedlayout>
So I need to keep the space the same between Icons when I focus on each icon. what shall I add in itemlayout or focuslayout?
I hope I can explain it good what I am looking for:
I made a new page and I put icons ith horizontal order and every icon with item layout shape is 150x150 px size and when i focus on it I made it 210x210 px. it works and fine but I need when focus to maintain the distance between icons..How can I do it?
here is what I did:
<control type="panel" id="2">
<posx>70</posx>
<posy>27</posy>
<height>720</height>
<width>1280</width>
<onup>2</onup>
<ondown>2</ondown>
<onleft>2</onleft>
<onright>2</onright>
<focusposition>2</focusposition>
<orientation>horizontal</orientation>
<itemlayout width="230" height="230">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>150</height>
<texture>white.jpg</texture>
</control>
<control type="label">
<posx>128</posx>
<posy>110</posy>
<width>128</width>
<height>20</height>
<label>$INFO[ListItem.label]</label>
<align>center</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>black</textcolor>
<scroll>true</scroll>
<visible>false</visible>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>150</width>
<height>150</height>
<colordiffuse></colordiffuse>
<texture>$INFO[ListItem.ActualIcon]</texture>
</control>
</itemlayout>
<focusedlayout width="230" height="230">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>210</width>
<height>210</height>
<texture>white.jpg</texture>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>210</width>
<height>210</height>
<texture>blue.png</texture>
</control>
<control type="image">
<posx>0</posx>
<posy>191</posy>
<width>210</width>
<height>40</height>
<texture>blue.png</texture>
</control>
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>210</width>
<height>210</height>
<texture>$INFO[ListItem.ActualIcon]</texture>
</control>
<control type="label">
<posx>0</posx>
<posy>210</posy>
<width>210</width>
<height>20</height>
<label>$INFO[ListItem.label]</label>
<align>center</align>
<aligny>center</aligny>
<font>font12</font>
<textcolor>yellow</textcolor>
<visible>true</visible>
</control>
</focusedlayout>
So I need to keep the space the same between Icons when I focus on each icon. what shall I add in itemlayout or focuslayout?