Kodi Community Forum
Make Control Group visible after tap on touchscreen - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Make Control Group visible after tap on touchscreen (/showthread.php?tid=338930)



Make Control Group visible after tap on touchscreen - meinnamehier - 2019-01-02

Hi all,

I created a custom skin based on Estouchy to provide bigger buttons on the Player Controls.
I will be using this skin on a project where I am integrating a 5" Touchscreen.

I wanted to have the Controls to fade away after 5 seconds of inactivity, so I created this in IncludesPlayerControls.xml:
Code:
    <visible>!System.IdleTime(5)</visible>
    <animation effect="fade" time="400">VisibleChange</animation>
on the appropriate Control group.

Now my problem is this: How can I get the controls visible when I tap on the screen?
I am missing something obvious I fear, maybe someone can help?

Thanks in advance!


RE: Make Control Group visible after tap on touchscreen - Hitcher - 2019-01-02

Try -

xml:
<animation effect="fade" time="400" end="0" start="100" condition="System.IdleTime(5)">Conditional</animation>



RE: Make Control Group visible after tap on touchscreen - meinnamehier - 2019-01-02

Thanks a lot - that is a neat tip for doing the animation in a clean way.
It does not seem to solve my problem though: The controls remain hidden and I can not bring them back.
I can actually tap on them and they perform their task (like play, pause or stop) but I can not see them.
How can I get them visible again?


RE: Make Control Group visible after tap on touchscreen - Hitcher - 2019-01-03

Not sure to be honest because the system isn't idle if you do something so they should appear.


RE: Make Control Group visible after tap on touchscreen - meinnamehier - 2019-05-10

I had a chance to revisit this topic and cerated a new thread: https://forum.kodi.tv/showthread.php?tid=343770