Create an Uber Clone in 7 Days
Total Page:16
File Type:pdf, Size:1020Kb
Create an Uber Clone in 7 Days Shai Almog 2018-07-22 Contents Preface. 1 Audience. 1 Prerequisites . 2 What you don’t need to Know . 2 Get this Book for FREE! . 2 How to Read this Book? . 3 Software Prerequisites . 4 Getting Help. 4 Using the Code. 4 Important Notice About Cloning and Copyrights . 5 Thanks and Acknowledgments . 5 1. Hello World . 7 1.1. What’s Codename One?. 7 1.1.1. Build Cloud . 8 1.2. Getting Started. 8 1.2.1. New Project. 8 Running . 11 The Source Code . 12 1.2.2. Run on Device . 18 Signing . 18 Build and Install . 25 1.3. How Does it Work? . 26 1.3.1. Mobile is Different . 26 Density (DPI/PPI) . 27 1.3.2. Performance. 29 App Size . 29 Power Drain . 30 1.3.3. Sandbox and Permissions . 30 1.4. Summary . 31 2. Core Concepts . 33 2.1. The Todo App. 33 2.2. Layouts and Hierarchy . 35 2.2.1. Layout Managers. 44 Terse Syntax . 47 2.2.2. Styles . 47 Designer Tool . 50 2.2.3. Event Handling . 68 Observers and Event Types . 69 Event Dispatch Thread. 71 2.2.4. IO and Storage . 72 2.3. Summary . 74 3. Spring Boot Overview . 75 3.1. What’s Spring Boot? . 75 3.2. Why Spring Boot . 76 3.3. What will we Use? . 76 3.4. Summary . 77 4. Day 1: The Mockup. 79 4.1. Deconstructing Uber . 79 4.1.1. Portrait Only UI . 81 4.1.2. iOS and Android Look Almost Identical . 81 4.1.3. Inconsistent Titles and Simple Design . 82 4.2. The UI Elements ..