iJavaFX Mobile
I’ve been playing around figuring out what it will take to build mobile phone apps with compelling GUIs using JavaFX; including creating custom controls like the unlock slider idea borrowed from the iPhone. If you run this demo, and unlock the “phone”, you’ll discover some “top secret” info – that is, the identities of the first JavaFX Mobile handsets that you’ll be able to get your hands on
Herewith, some notes on my thoughts so far, with reference to the demo above.
What’s Easy
- Creating custom UI controls designed for the particular characteristics of different handsets e.g. gesture-based controls, such as the unlock slider, for touch screen devices
- Creating the combinations of transparent gradients needed in, and around, controls so that they can fit with user customizations e.g. gorgeous photographs
- Creating custom controls with not only the look, but the feel that you want e.g. animating controls so they move out of the way when the user is done with them
- Creating pretty transitions between “screens” of the app e.g. fading in and out, or sliding content into place
What’s Tricky
- Some graphical effects you might want to use may simply not be available on mobile devices because they’re part of the desktop profile e.g. the scanning spot light effect on “slide to unlock”
- Some effects you might want to use are in the common profile, but actually not work on mobile. For example the “clip” attribute on nodes is in the common profile, but is documented as “common conditional clip”. What that means in practice is that you cannot rely on it to work on mobile. In the demo, I used clip to make the “slide to unlock” text wipe away as the slider moves across.
The bottom line of my thoughts so far is – it’s going to be pretty easy to create apps with gorgeous UIs using JavaFX Mobile. However, you do have to keep a close eye on the documentation to understand what’s going to work, and what’s not. Even looking to see if something is in the JavaFX common profile may not be enough in some cases – as I found with the “clip” effect above.
Overall, I think the possiblities that JavaFX offers for mobile software development are pretty exciting. It’s going to bring a lot of power to mobile phone software development…
Comments(0)
