Question, is there a sort of way to replicate the various sliders widget locker has on a lockscreen?
Question, is there a sort of way to replicate the various sliders widget locker has on a lockscreen?
]]>
« Hey guys, I thought I’d share with you my new project running on our favourite launcher. (Previous Post)
(Next Post) This is beta yet. »
< ![CDATA[
Panels with an item and a stop point to run something. Place them so scrolling the panel will move the item (slider) until the stop point acts, then unlock…launch an app…
]]>
< ![CDATA[
Got that working via a stop point, now is there any way to automatically move the slider back to its original location so I don’t have to swipe back and forth to unlock?
]]>
< ![CDATA[
Scripts.
There are a lot of ways to do that, but you will need to know to script.
A possible solution is to use this: (set it in the resumed event of the lock desktop)
reset(LL.getEvent().getContainer());
function reset(cont){
cont.setPosition(0,0,1,false);
var items=cont.getItems();
for(var i=items.getLength()-1;i>=0;–i){
var item=items.getAt(i);
if(item.getType()==”Panel”)reset(item.getContainer());
}
}
]]>
< ![CDATA[
That works! Thanks!
]]>