Android Recipes [electronic resource] : A Problem-Solution Approach for Android 5.0 /
Smith, Dave.author.
Android Recipes, Fourth Edition offers more than 100 down-to-earth code recipes, and guides you step-by-step through a wide range of useful topics using complete and real-world working code examples. This book is updated to include the Android 5.0 SDK, as well as earlier releases. Instead of abstract descriptions of complex concepts, in Android Recipes, you'll find live code examples. When you start a new project you can consider copying and pasting the code and configuration files from this book and then modifying them for your own customization needs. Crammed with insightful instruction and helpful examples, this fourth edition of Android Recipes is your guide to writing apps for one of today’s hottest mobile platforms. It offers pragmatic advice that will help you get the job done quickly and well. This can save you a great deal of work over creating a project from scratch! Android continues to be one of the leading mobile OS and development platforms driving today's mobile innovations and the apps ecosystem. Android appears complex, but offers a variety of organized development kits to those coming into Android with differing programming language skill sets.
Contents at a Glance; Introduction; Chapter 1: Layouts and Views; 1-1. Styling Common Components; Problem; Solution; How It Works; Themes; System Themes; Custom Themes; 1-2. Toggling System UI Elements; Problem; Solution; How It Works; Dark Mode; Hiding Navigation Controls; Full-Screen UI Mode; 1-3. Creating and Displaying Views; Problem; Solution; How It Works; Completely Custom Views; Measurement; Drawing; 1-4. Animating a View; Problem; Solution; How It Works; ObjectAnimator; AnimatorSet; 1-5. Animating Layout Changes; Problem; Solution; How It Works
1-6. Implementing Situation-Specific LayoutsProblem; Solution; How It Works; Orientation-Specific; Size-Specific; Layout Aliases; Tying It Together; 1-7. Customizing AdapterView Empty Views; Problem; Solution; How It Works; Make Empty Interesting; 1-8. Customizing ListView Rows; Problem; Solution; How It Works; Starting Simple; Adapting to a More Complex Choice; 1-9. Making ListView Section Headers; Problem; Solution; How It Works; 1-10. Creating Compound Controls; Problem; Solution; How It Works; TextImageButton; 1-11. Customizing Transition Animations; Problem; Solution; How It Works
ActivitySupport Fragments; Native Fragments; 1-12. Creating View Transformations; Problem; Solution; How It Works; 1-13. Making Extensible Collection Views; Problem; Solution; How It Works; Staggered Grid; Decorating Items; Item Animations; Summary; Chapter 2: User Interaction Recipes; 2-1. Leveraging the Action Bar; Problem; Solution; How It Works; Custom Views; Toolbar; 2-2. Locking Activity Orientation; Problem; Solution; How It Works; 2-3. Performing Dynamic Orientation Locking; Problem; Solution; How It Works; 2-4. Manually Handling Rotation; Problem; Solution; How It Works
2-5. Creating Contextual ActionsProblem; Solution; How It Works; Contextual Pop-ups; ActionMode; 2-6. Displaying a User Dialog Box; Problem; Solution; How It Works; Custom List Items; 2-7. Customizing Menus and Actions; Problem; Solution; How It Works; 2-8. Customizing BACK Behavior; Problem; Solution; How It Works; BACK Behavior and Fragments; 2-9. Emulating the HOME Button; Problem; Solution; How It Works; 2-10. Monitoring TextView Changes; Problem; Solution; How It Works; Character Counter Example; Currency Formatter Example; 2-11. Customizing Keyboard Actions; Problem; Solution
How It WorksCustom Enter Key; Custom Action; 2-12. Dismissing the Soft Keyboard; Problem; Solution; How It Works; 2-13. Handling Complex Touch Events; Problem; Solution; How It Works; Multitouch Handling; 2-14. Forwarding Touch Events; Problem; Solution; How It Works; Custom Touch Forwarding (Remote Scroller); 2-15. Blocking Touch Thieves; Problem; Solution; How It Works; 2-16. Making Drag-and-Drop Views; Problem; Solution; How It Works; Customizing DragShadowBuilder; 2-17. Building a Navigation Drawer; Problem; Solution; How It Works; Drawing Over with Toolbar; 2-18. Swiping Between Views
Problem
Includes index.
Android Recipes, Fourth Edition offers more than 100 down-to-earth code recipes, and guides you step-by-step through a wide range of useful topics using complete and real-world working code examples. This book is updated to include the Android 5.0 SDK, as well as earlier releases. Instead of abstract descriptions of complex concepts, in Android Recipes, you'll find live code examples. When you start a new project you can consider copying and pasting the code and configuration files from this book and then modifying them for your own customization needs. Crammed with insightful instruction and helpful examples, this fourth edition of Android Recipes is your guide to writing apps for one of today’s hottest mobile platforms. It offers pragmatic advice that will help you get the job done quickly and well. This can save you a great deal of work over creating a project from scratch! Android continues to be one of the leading mobile OS and development platforms driving today's mobile innovations and the apps ecosystem. Android appears complex, but offers a variety of organized development kits to those coming into Android with differing programming language skill sets.
Android (Electronic resource)
Android (Electronic resource)
Mobile computing.
Programming languages (Electronic computers).
Mobile Computing.
Programming Languages, Compilers, Interpreters.