#Overview
I created this simple Staff Directory App as a demonstration for a small internal staff training workshop. Finished product shown below, goal throughout class was to explain code walkthrough and learning resources in pieces, allowing students to create app as a practical exercise.
My goals:
- Show utility of Titanium Mobile to rapidly create simple, x-platform, enterprisey apps (clever term via @thiswayup)
- Demonstrate use of app template (Master/Detail) included as part of Ti Studio.
- Demonstrate basic UI elements, events, composite TableView layouts, ImageViews, CommonJS pattern, JSON annotation
- Replace default splash and icon graphics with custom logo
UI design borrowed from Rafael Streit's excellent BrazilJS app.
To use:
- Fire up Titanium Studio, create a new Ti Mobile Project, select Master/Detail application template. Complete creation steps as normal, disable ACS.
- Download image files as zip. Unzip and copy /Resources/iphone and /Resources/android to your project's /Resources folder, merging with the existing /iphone and /android folders. Copy /images folder under your project's /Resources folder.
- Replace text of /Resources/ui/common/MasterView.js and /Resources/ui/common/DetailView.js with respective content below. Create folder /Resources/data, then create file /Resources/data/data.js with content shown below.
- Dig around in respective ui/handheld/android - ios - mobileweb and /ui/tablet folders for ApplicationWindow.js to replace "Products" and "Product Details" titles with something more appropriate. :-) Or better yet, abstract these values to an /il8n language file...
Test run in simulator or on device, debug as needed.
- Kitchen Sink
- jsonlint.com
adb -e logcat | grep "TiAPI"
- API Docs
- Q&A Forums
- Documentation | Video Tutorials | Ebook | Real book
- GitHub projects: KitchenSink | TitaniumIntro | App | App-BrazilJS
- Training
- appc.me/learn