Cargando…

Expert Android /

From the leading publisher of Android books, Apress' Expert Android gives you advanced techniques for customizing views, controls, and layouts. You'll learn to develop apps in record time using JSON, Advanced Form Processing, and the BaaS (Backend As A Service) platform Parse. The book als...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Komatineni, Satya
Otros Autores: MacLean, Dave
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [Place of publication not identified] : New York : Apress ; Distributed to the Book trade worldwide by Springer Science+Business Media New York, ©2013.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Contents at a Glance
  • Contents
  • About the Authors
  • About the TechnicalReviewer
  • Acknowledgments
  • Introduction
  • Chapter 1: Exploring Custom Views
  • Planning a Custom View
  • Nature of Drawing in Android
  • Layout Phase: Measurement and Layout
  • Drawing Phase: Mechanics of onDraw
  • Implementing Measure Pass
  • Implementing Drawing through onDraw(â€?)
  • Responding to Events
  • Saving View State
  • Rely on Activity Methods
  • Enabling the View for Self State Management
  • BaseSavedState Pattern
  • Custom Attributes
  • Complete Source Code for the Custom ViewImplementing a Base Abstract View Class
  • CircleView Implementation
  • Defining Custom Attributes for the CircleView
  • Using the CircleView in a Layout
  • References
  • Summary
  • Review Questions
  • Chapter 2: Exploring Compound Controls
  • Planning a Duration Compound Control
  • Deriving from an Existing Layout
  • Creating the Layout file for the Compound Control
  • Specifying DurationControl in an Activity Layout
  • Working with Fragment Dialogs
  • Getting Access to a Fragment Manager
  • Invoking Fragment Dialogs
  • Creating DatePickerFragment ClassConstructing the DatePickerFragment
  • Restoring the Dialog Fragment State
  • Calling the Parent Back
  • Managing the View State for a Compound Control
  • Implementing the SavedState Class for DurationControl
  • Implementing Save and Restore State on Behalf of Child Views
  • Creating Custom Attributes for DurationControl
  • Extending an Existing View
  • Implementation Detail of DurationControl
  • DurationControl.java
  • /layout/duration_view_layout.xml
  • DatePickerFragment.java
  • Main Activity XML file
  • /values/attrs.xml