Android Application Development Cookbook - Second Edition.
Over 100 recipes to help you solve the most common problems faced by Android Developers todayAbout This Book Find the answers to your common Android programming problems, from set up to security, to help you deliver better applications, faster Uncover the latest features of Android Marshmallow to ma...
Clasificación: | Libro Electrónico |
---|---|
Autores principales: | , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing, Limited
March 2016.
|
Edición: | 2nd ed. |
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; Disclaimer; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Activities; Introduction; Declaring an activity; Starting a new activity with an intent object; Switching between activities; Passing data to another activity; Returning a result from an activity; Saving an activity's state; Storing persistent activity data; Understanding the activity lifecycle; Chapter 2: Layouts; Introduction; Defining and inflating a layout; Using RelativeLayout; Using LinearLayout; Creating tables
- TableLayout and GridLayout.
- Using ListView, GridView, and AdaptersChanging layout properties during runtime; Optimizing layouts with the Hierarchy Viewer; Chapter 3: Views, Widgets, and Styles; Introduction; Inserting a widget into a layout; Using graphics to show button state; Creating a widget at runtime; Creating a custom component; Applying a style to a View; Turning a style into a theme; Selecting theme based on the Android version; Chapter 4: Menus; Introduction; Creating an Options menu; Modifying menus and menu items during runtime; Enabling Contextual Action Mode for a view.
- Using Contextual Batch Mode with a ListViewCreating a pop-up menu; Chapter 5: Exploring Fragments, AppWidgets, and the System UI; Introduction; Creating and using a Fragment; Adding and removing Fragments during runtime; Passing data between Fragments; Creating a shortcut on the Home screen; Creating a Home screen widget; Adding Search to the Action Bar; Showing your app full screen; Chapter 6: Working with Data; Introduction; Storing simple data; Read and write a text file to internal storage; Read and write a text file to external storage; Including resource files in your project.
- Creating and using an SQLite databaseAccess data in the background using a Loader; Chapter 7: Alerts and Notifications; Introduction; Lights, Action, and Sound
- getting the user's attention!; Creating a Toast using a custom layout; Displaying a message box with AlertDialog; Displaying a progress dialog; Lights, Action, and Sound Redux using Notifications; Creating a Media Player Notification; Making a Flashlight with a Heads-Up Notification; Chapter 8: Using the Touchscreen and Sensors; Introduction; Listening for click and long-press events; Recognizing tap and other common gestures.
- Pinch-to-zoom with multi-touch gesturesSwipe-to-Refresh; Listing available sensors
- an introduction to the Android Sensor Framework; Reading sensor data
- using the Android Sensor Framework events; Reading device orientation; Chapter 9: Graphics and Animation; Introduction; Scaling down large images to avoid Out of Memory exceptions; A Transition Animation
- defining scenes and applying a transition; Creating a Compass using Sensor data and RotateAnimation; Creating a slideshow with ViewPager; Creating a Card Flip Animation with Fragments; Creating a Zoom Animation with a Custom Transition.