Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Creating Mobile Apps with Appcelerator Titanium

You're reading from  Creating Mobile Apps with Appcelerator Titanium

Product type Book
Published in Oct 2013
Publisher Packt
ISBN-13 9781849519267
Pages 318 pages
Edition 1st Edition
Languages
Author (1):
Christian Brousseau Christian Brousseau
Author Profile Icon Christian Brousseau
Christian Brousseau
Toc

Table of Contents (18) Chapters Close

Creating Mobile Apps with Appcelerator Titanium
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Stopwatch (with Lap Counter) 2. Sili, the assistant that just listens 3. The To-do List 4. Interactive E-book for iPad 5. You've Got to Know When to Hold 'em 6. JRPG – Second to Last Fantasy 7. JRPG – Second to Last Fantasy Online 8. Social Networks 9. Marvels of the World around Us 10. Worldwide Marco Polo References Index

The main application window


Our main application window will be comprised of a progress bar that will indicate how far we are from our objective. This same progress bar will have a label on each end to indicate the minimum and maximum value. There will also be a much larger label right at the center of the window which will serve as the recommendation (whether to hold on to our stock or sell it).

Finally, there will be buttons on each window's bottom-corners, one to access the portfolio management window and a second one to refresh the stocks by retrieving their latest selling price online:

Moving on to the code

As mentioned earlier, our main application window will be contained in its very own JavaScript file. So, in Titanium Studio, we will create a new file by navigating to the File | New | File menu. We will name it ApplicationWindow.js and it will be located in the Resources/ui directory.

In order to be able to load the application window, we need to define a function that will return our...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime