Scrollbar
Posted by: pierrot | on March 22, 2014
Scrollbar
Update (4/2014):
-Option whether to scroll free or scroll only to pages
-Panel and indicator are identified with name, not ID, thanks Pierre Hébert
I hope I didn’t forget anything.
No guarantee to work.
Feel free to report bugs and post suggestions.
Script & setup:
http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_scrollbar
#Scrollbar
#LLX_script
]]>Posted in | 10 Comments »
Tags: , ,
« Bug with item hierarchy 9.9.14. (Previous Post)
(Next Post) Hello this is my last setup with llx, zooper, appy geek, battery reborn widget, desktop visualiser. »
< ![CDATA[
It works ! Congratulations !
I would suggest to use getItemByLabel instead of getItemById, as it is easier to set a label than retrieving the id, and the id may change when sharing templates too.
]]>
< ![CDATA[
Pierre Hébert “… and the id may change when sharing templates too.”
Been meaning to ask about that. Is this true whether importing template or installing apk?
]]>
< ![CDATA[
Chris Chastain I think both would re-generate these items, and they’ll get a new ID
]]>
< ![CDATA[
More exactly an item id is a combination between the item number and the desktop number (so that it’s possible to link an item with a container). When merging desktops from a template (either in a file or an apk) desktops need to be re-numbered, and items id need to follow.
]]>
< ![CDATA[
update: simplified
]]>
< ![CDATA[
Lukas Morawietz : Thanks for all your great scripts, but I can’t get this one to work … Can you help me please ?
I create a 1st panel (as container) call “scrollbar”, set vertical only and snap to page
Inside this first panel, I add a 2nd panel call “scroll”, pinned it and infinite scrolling
Inside the 2nd panel I add a LL Action (do nothing) call “indicator”, not clickable.
In the 1st and 2nd panel I set the script in position change, but I get this message :
At line 10 : TypeError : impossible to call the method “{1} de {0} (Scrollbar#10)
What am I doing wrong ? Thanks in advanced
]]>
< ![CDATA[
This script is for use in a desktop, not a panel.
However, this can be done also with an easy addition.
Wait a second.
]]>
< ![CDATA[
Change the line:
var d=LL.getDesktopByName(Desktop_Name);
to:
var d=LL.getCurrentDesktop().getItemByLabel(Desktop_Name).getContainer();
]]>
< ![CDATA[
Thank you very much !!!
I’ll try to change the line, I didn’t understand the script was for destock …
Thanks for your help 🙂 and great work
]]>
< ![CDATA[
The script has received an update! I added tap support.
]]>