now browsing by category

 

So

So

A lot of people have been complaining about the padding in widgets, something that seems to be an android issue, even thought other launchers seem to ‘fix’.

This is Lightning launcher! And we can also fix that!

The issue is that the widgets seem to have a margin (20px in my case), and suddenly I thought…why not set the margin of the box of the widgets to -20?

This is not possible with the normal lightning UI…but it is with scripts 😀

When setting the properties, lightning don’t check if they are positive, so you can simply put a negative margin to ‘reduce’ the widgets.

I quickly made this script that lets you easily ‘fix’ a widget running the script from the widget, or even all in a container running the script from the container (it lets you ‘revert back’)

Note: as I said, for me the ‘ghost’ margin is 20px in all directions, you can test and change those values in the script in case you have different ones.

Pierre Hébert​: what about let the normal user set directly negative number in the box?

]]>

LL.getContext().getWindow().getDecorView().setSystemUiVisibility(4096+4+2);

LL.getContext().getWindow().getDecorView().setSystemUiVisibility(4096+4+2);

Can you guess what it does 😉

(The effect will disappear when leaving the launcher, you may want to set it in the resumed event of the desktop, or any item. For android 4.4 or more. Didn’t test a lot)

]]>

How can we use :

How can we use :

public String loadRawResource (String pkg, String name) from the LL class?

]]>

Let’s play Mario!

Let’s play Mario!

With TrianguloY & Lukas Morawietz script parallax background,

icons by Sandro Pereira

]]>

New version of DimBackgound script available!

New version of DimBackgound script available!

Changlog:

– UI for value input

– different values in different folders possible

– fix item stays in foreground (see Olin James [can’t link, damn google] post)

https://drive.google.com/open?id=0B40xU-30MxN7SzFPZHd2VkZBNjQ&authuser=0

https://drive.google.com/open?id=0B40xU-30MxN7SzFPZHd2VkZBNjQ&authuser=0
]]>

For me, when a ‘door opens’ and it has a lot of things at the other side, I sometimes get a bit shocked at the…

For me, when a ‘door opens’ and it has a lot of things at the other side, I sometimes get a bit shocked at the beginning, and it takes me time to try and get used to it.

It happened when the ‘Image update’, and specially with the ‘java update’.

Now, thanks mainly to Lukas Morawietz​, but also to the others scripters that published scripts with ‘java code’ I think I can now understand well and make my own ones.

I’m full of new ideas, but with less free time than in the past. So perhaps I will publish some ‘pieces of code’ without a specific use, but that others can use to make a useful script. (I have one to make a notification, another to edit an Intent, another to read the logcat…ask if you are interested)

Enough for now. This post is to share a script, so here it is.

Instructions: set it in the resumed event of an item (use a new shortcut, intent/icon/label will be overwritten)

The script ideally takes the last used app (that is not the launcher) and change the item to be as the app shortcut of that app.

It will take the default icon, no icon packs.

It can be buggy sometimes (I didn’t tested it a lot too), and maybe it throws an error, but I hope not to

The code is a bit messy, and I’m sure it can be improved

It can be modified to show more than one of the recent apps, but it is not implemented. Feel free to do so

Personally I’m using it now in my own screen to change the behavior of the HOME key. It will launch the previous app and the icon is placed under the HOME button (transparent nav bar) [although two more lines of code were necessary]

If you are still undecided to try all this new API features, think as if you can just use almost all android functions, only using the LL.bindClass() where necessary. Also in the java examples where it uses ‘this’ or simply nothing, in most cases you will need LL.getContext()

Thanks again Pierre Hébert​ for this awesome launcher.

]]>

Pierre Hébert

Pierre Hébert

Is it possible for a script compiled in an apk, to be executed at llx start (without user interaction if possible) ?

(to load vars or functions in a personal namespace, then use them in other scripts launched at other time..) 

]]>

Multitool update:

Multitool update:

Added Icon and image view

Added Progressdialog to Autoformat to show the user what gets done

https://drive.google.com/open?id=0B40xU-30MxN7em80T0hrRkxDT0U&authuser=0

If you are missing something, tell me 😉

If something doesn’t work as expected, tell me 😉

BTW: my versions in the wiki aren’t the same as the ones of the apks.

https://drive.google.com/open?id=0B40xU-30MxN7em80T0hrRkxDT0U&authuser=0
]]>

Is it possible to execute a script from an other script?

Is it possible to execute a script from an other script?

It would be very helpful to load my “api” files at llx launch…

(I can’t put them all in one file, it would be impossible to support !)

]]>

My 1st Ever Script :) I feel like a Genius Lol

My 1st Ever Script 🙂 I feel like a Genius Lol

How it works: run it from a shortcut,

What it does: You type something in the box tap save and its gets written to a text file on your Internal Storage and any other notes you write will then get appended to that file.

To Do

# Add Text Color Options Somehow.

# Check If Text Is Longer than a certain number of characters before allowing the save button to work, to avoid blank notes being made.

#Make The View Note button open The Note File directly, or make A custom view to display them or whatevers easier for me to do.

Thanks to Lutz Linke​ For recommending a kick ass Code Editor

Lukas Morawietz​ For His Animations Script and Multi Tool Script which I referred to a lot while writing this.

TrianguloY​ For His Case Change Script which inspired me to try writing my own script.

Pierre Hébert​ For Lightning Launcher, Scripting and His Sample Code Showing how to use the Android Framework through Script.

And anybody who trys running this. If you want to improve it / finish it off feel free but it would be great if you could add some noob proof comments in your code so I can learn from it cheers.

WARNING! Don’t save sensitive info (Phone #s, Passwords etc I have no idea how secure this is but I’m guessing not very);

]]>