Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1803

List items Focus animation when not focused

$
0
0
I have a list and in the focused layout I use a Focus animation like so

Code:
<control type="list" id="506">
  ......
  ......
  <itemlayout width="1000" height="200">
    .....
    .....
  </itemlayout>
  <focusedlayout wisth="1000" height="200">
    <control type="group">
      <animation type="Focus" reversible="false">
        <effect type="zoom" end="106" time="50" tween="sine" center="auto" />
        <effect type="zoom" end="94.34" time="150" tween="sine" delay="100" center="auto" />
      </animation>
      .....
      .....
    </control>
  </focusedlayout>
</control>

This works perfectly fine, however I need to control the list using a hidden button so I can override the <onclick> action like so

Code:
<control type="button">
  <left>-1000</left>
  <onup>Control.Move(506,-1)</onup>
  <ondown>Control.Move(506,1)</ondown>
</control>

This moves the list fine but because the list never has focus the focused layouts Focus animation never triggers. Is there any work around for this?

Thanks

Viewing all articles
Browse latest Browse all 1803

Trending Articles