Sam Croft

Full-stack developer

A super-lightweight mobile webkit accordion jQuery plugin, great for iOS/Android PhoneGap apps

  • 11 comments

Filed in: android, iOS, jQuery, PhoneGap

Ahhh, accordions. Their use and acceptance in web design has been varied over the years, but right now I think we can safely say they are en vogue. Unfortunately, as developers (myself included), when we use an accordion we probably use the same old chunk of code and non-semantic tag-soup that we used last season. And the time before that.

For about a year I’ve been meaning to write my own lightweight accordion that we can use across the board on our various projects at RITH. And at the moment, that largely entails creating reusable webkit optimised code for use on iOS and Android mobile devices deployed as native apps using PhoneGap.

(more…)

Building an Android PhoneGap app ‘reveal’ menu/tabbar that doesn’t rely on the use of position: fixed

  • 11 comments

Filed in: android, jQuery, PhoneGap

Last month I started developing for Android for the first time, using PhoneGap and Eclipse. Initially this was a bit of shock, I was rather outside of my comfort zone having used Xcode and iOS for the last three months.

After packing away my lovely iPhone 4 test phone and pulling out the ol’ HTC Desire I went through the laborious process of setting up an Android development environment—slightly more confusing than installing Xcode, but once set up there is none of the certificate bullshit to slow you down. Yippee.

(more…)