Creating Dynamic UI with Android Fragments.
A fast-paced tutorial that guides you through everything you need to know about dynamic UI design for Android devices. This book is for developers with a basic understanding of Android programming who would like to improve the appearance and usability of their applications. Whether you're looki...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Packt Publishing,
2013.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgments; 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; 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 the 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 redundancy; Design fragments for flexibility; Avoid tight coupling; Abstract fragment relationships; Encapsulate fragment operations; Loosely connect the pieces; Fragments protect against the unexpected; Evolving layout resource files; Creating the book description activity; Making the MainActivity class adaptive; Summary.
- Chapter 3: Fragment Lifecycle and SpecializationUnderstanding fragment lifecycle; Understanding fragment setup and display; Avoiding method name confusion; Understanding fragment hide and teardown; Maximizing available resources; Managing a fragment state; Special purpose fragment classes; ListFragment; Associating data with the list; Separating data from display; DialogFragment; Styles; Layout; DialogFragment display; Event handling; Dialog identity; Summary; Chapter 4: Working with Fragment Transactions; Intentional screen management; Dynamically managing fragments.
- Deferred execution of transaction changesAdding 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 with Fragments; A brave new world; Making navigation fun with swipe; Implementing swipe navigation; Managing the swipe fragments.
- Putting the swipe UI into placeAndroid Studio and swipe navigation; Improving navigation with the ActionBar; Navigating randomly with tabs; Managing tab selection; Connecting the fragments to the tabs; Providing direct access with drop-down list navigation; Managing fragment selection; Providing the navigation choices; Android Studio and drop-down list navigation; Summary; Index.