My app drawer, using LLX and scripts.
Posted by: TrianguloY | on September 13, 2014
My app drawer, using LLX and scripts.
Characteristics from the launcher:
Auto closing the app drawer when opening an app.
Open/close animation from the top.
Auto close a folder when opening another.
Characteristics from scripts:
Auto sort alphabetically when open the folder.
The folder always open at the top.
The icon change to show which folder is opened (idea of Lukas Morawietz).
Posted in Lightning Launcher Users: Share your screen | 5 Comments »
Tags: TrianguloY
« Coding Standard Proposal (Previous Post)
(Next Post) Hi How can I ajust a theme to my HTC one S ? »
Oh yes, autosort, I’ve done that also. May I see your sorting algorithm?
var items=fold.getItems();
var list=[];
for(var t=items.getLength()-1;t>=0;){
var item=items.getAt(t);
list[t–]=item;
};
list.sort(function(a,b){return a.getLabel().toLowerCase()
I would use an .toLowerCase() on both labels, otherwise “AC” would be sorted before “Ab”.
Oh, yes. You are right.
Script updated.
Thanks 🙂
Hello! I’m new with LLX. How can I use your scipt to build an app drawer like yours? thanks