====== About the script ====== * Purpose : Small script that lets you change the Z order of the items in a container from a custom dialog. * Author : [[https://plus.google.com/u/1/105066926163073195690|TrianguloY]] * Link: https://plus.google.com/u/1/105066926163073195690/posts/FuBhf8EwF5T (with video) ====== How to use the script ====== Instructions: Run the script from a container. The list of all the items in that container will be shown (type+label+name). The first item of the list is the top most one. The last item the bottom most one. Choose two of them to exchange their Z order. Repeat. Click exit to exit. Note: I tested it some few times(in fact I had the idea less than two hours ago) and it works, but as usual maybe it don't work in some specific situations. Anyway the script only change the Z order, nothing more. ====== Script code ====== LL.bindClass("android.app.AlertDialog"); LL.bindClass("android.content.DialogInterface"); run(LL.getEvent().getContainer()); function run(cont){ var items=cont.getItems(); var names=[]; var ids=[]; for(var t=0;t