Cargando…

Creating dynamic UIs with Android fragments : create engaging apps with fragments to provide a rich user interface that dynamically adapts to the individual characteristics of your customers' tablets and smartphones /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Wilson, Jim (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2016.
Edición:Second edition.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Fragments and UI Modularization; The need for a new approach to UI creation; The broad platform support of fragments; How fragments simplify common Android tasks; The relationship between fragments and activities; Making the shift to fragments; The old thinking
  • activity-oriented; Defining the activity appearance; Displaying the activity UI; The new thinking: fragment-oriented; Creating the fragment layout resources; Creating the Fragment class
  • Converting an activity to use fragmentsSummary; Chapter 2: Fragments and UI Flexibility; Creating UI flexibility; Dynamic fragment layout selection; Adding an alternate layout resource; Managing fragment layout by screen size; Eliminating redundant layout descriptions; Designing fragments for flexibility; Avoiding tight coupling; Abstracting fragment relationships; Encapsulating fragment operations; Creating a loosely connected relationship between fragments; Fragments protect against the unexpected; Creating the book description activity; Adding functionality to the book description activity
  • Making the MainActivity class adaptiveSummary; Chapter 3: Fragment Life Cycle and Specialization; Understanding the fragment life cycle; Understanding fragment setup and display; Avoiding method name confusion; Understanding fragment hide and teardown; Maximizing the available resources; Managing a fragment state; Special-purpose fragment classes; ListFragment; Associating data with the list; Separating data from the display; DialogFragment; Styles; Layout; Displaying DialogFragment; Event handling in DialogFragment; The Dialog identity; Summary; Chapter 4: Working with Fragment Transactions
  • Intentional screen managementDynamically managing fragments; Deferred execution of transaction changes; Adding and removing fragments; Supporting the back button; Creating an adaptive application layout; Updating the layout to support dynamic fragments; Adapting to device differences; Dynamically loading a fragment at startup; Transitioning between fragments; Eliminating redundant handling; Creating the fragment on the fly; Managing asynchronous creation; Putting it all together; Summary; Chapter 5: Creating Rich Navigation; A brave new world; Making navigation fun with swipe
  • Implementing swipe navigationAdding swipe navigation with Android Studio; Managing the swipe UI behavior; Putting the swipe UI into place; Providing direct navigation to screens; Don't get trapped in the past; Direct navigation for a small number of screens; Direct navigation for four or more screens; Creating a navigation drawer activity with Android Studio; The activity and application screen fragment; The navigation drawer fragment; Summary; Chapter 6: Fragments and Material Design; Creating a rich user experience; Material design; Principles of material design; The role of motion