Pages

Wednesday, 21 September 2011

I'm playing with SL4A: UI Builder

I'm now playing with SL4A that I recently discovered. SL4A stands for Scripting Languages for Android and provides live scripting environments on your phone or tablet.

It works in tandem with Python for Android as an interpreter which is downloadable separately. Python is my choice of language for now.

The latest Unofficial packages of SL4A add the ability to build UIs using the standard Android XML format.

That's great but I don't want to be editing XML on my phone. Not finding a useful XML editor for free in the Market I've found my first SL4A project.

UI Builder.

This is a menu driven Python script for generating and previewing live a simple layout XML file. It does not support nearly everything nor does SL4A yet (for example any Views that must be populated by an adapter class can't be done as far as I can see). But you will be able to do interactive form style applications.

I'll post the code soon when I can upload it somewhere. It's longer than a barcode (SL4A's unique script distribution option) for sure.

I'm steadily improving it thanks to time spent carpooling.

As a tease, here's a screenshot, which I can't seem to rotate right...