Posted by: pierrot | on November 26, 2014
Thanks for your help!
Posted in | 2 Comments » Tags: Benoît de Chezelles (bew)
< ![CDATA[
They might be basic, but the great thing is that the key components are clearly visible.
To get the current page X and Y, try this:
var d=LL.getCurrentDesktop();
var page=Math.round(d.getPositionX()/d.getWidth());
The rest is up to you, it depends on the way you want to display things.
To display a red dot, you could either use a combination of 2 shortcuts, a fixed font, one with a red font color, the other with a white one (red above). Set their labels to a sequence of white dots, and the other one with a single dot with some spaces around (to move it right/left), according to the current page. A bit like in http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_minimalistic_page_indicator
You could also directly draw some filled circles using the canvas.
]]>
Thanks, I’ll try in the next days !
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
< ![CDATA[
They might be basic, but the great thing is that the key components are clearly visible.
To get the current page X and Y, try this:
var d=LL.getCurrentDesktop();
var page=Math.round(d.getPositionX()/d.getWidth());
The rest is up to you, it depends on the way you want to display things.
To display a red dot, you could either use a combination of 2 shortcuts, a fixed font, one with a red font color, the other with a white one (red above). Set their labels to a sequence of white dots, and the other one with a single dot with some spaces around (to move it right/left), according to the current page. A bit like in http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_minimalistic_page_indicator
You could also directly draw some filled circles using the canvas.
]]>
< ![CDATA[
Thanks, I’ll try in the next days !
]]>