万本电子书0元读

万本电子书0元读

顶部广告

Creating Dynamic UI with,Android Fragments电子书

售       价:¥

9人正在读 | 0人评论 9.8

作       者:Jim Wilson

出  版  社:Packt Publishing

出版时间:2013-09-25

字       数:154.0万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 looking to create a more interactive user experience, create more dynamically adaptive UIs, provide better support for tablets and smartphones in a single app, reduce the complexity of managing your app UIs, or you are just trying to expand your UI design philosophy, then this book is for you.
目录展开

Creating Dynamic UI with Android Fragments

Table of Contents

Creating Dynamic UI with Android Fragments

Credits

About the Author

Acknowledgments

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

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

Defining the layout as a reusable list

Minimize assumptions

Encapsulating the display layout

Creating the Fragment class

Wrapping the list in a fragment

Providing the display fragment

Converting the activity to use fragments

Activities and backward compatibility

Summary

2. Fragments and UI Flexibility

Creating UI flexibility

Dynamic fragment layout selection

Adding an alternate layout resource

Managing fragment layout by screen size

Resource screen size groups

Resource screen size qualifiers

Eliminating redundancy

Layout aliasing

Design fragments for flexibility

Avoiding tight coupling

Abstracting fragment relationships

Defining the callback interface

Making the fragment self-contained

Fragment notification

Encapsulating fragment operations

Loosely connecting the pieces

Fragments protect against the unexpected

Evolving layout resource files

Creating the book description activity

Making the MainActivity class adaptive

Summary

3. Fragment Lifecycle and Specialization

Understanding the 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

Creating the ListFragment derived class

Handling ListFragment item selection

Updating the layout resources

DialogFragment

Styles

Layout

DialogFragment display

Event handling

Dialog identity

Accessing Dialog related behavior

Wrapping an existing dialog in a fragment

Summary

4. Working with Fragment Transactions

Intentional screen management

Dynamically 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

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 place

Android 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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部