Creating Dynamic UI with Android Fragments

Creating Dynamic UI with Android Fragments pdf epub mobi txt 电子书 下载 2025

出版者:Packt Publishing
作者:Jim Wilson
出品人:
页数:122
译者:
出版时间:2013-9
价格:£24.99
装帧:平装
isbn号码:9781783283095
丛书系列:
图书标签:
  • Android
  • Fragment
  • UI
  • 计算机
  • Android进阶
  • Android
  • Fragments
  • UI
  • Android开发
  • 移动应用
  • 用户界面
  • 组件
  • 动态UI
  • Android教程
  • 开发技巧
想要找书就要到 小美书屋
立刻按 ctrl+D收藏本页
你会得到大惊喜!!

具体描述

To create a dynamic and multi-pane user interface on Android, you need to encapsulate UI components and activity behaviors into modules that you can swap into and out of your activities. You can create these modules with the fragment class, which behaves somewhat like a nested activity that can define its own layout and manage its own lifecycle. When a fragment specifies its own layout, it can be configured in different combinations with other fragments inside an activity to modify your layout configuration for different screen sizes (a small screen might show one fragment at a time, but a large screen can show two or more).

Creating Dynamic UI with Android Fragments shows you how to create modern Android applications that meet the high expectations of today’s users. You will learn how to incorporate rich navigation features like swipe-based screen browsing and how to create adaptive UIs that ensure your application looks fantastic whether run on a low cost smartphone or the latest tablet.

This book looks at the impact fragments have on Android UI design and their role in both simplifying many common UI challenges and providing new ways to incorporate rich UI behaviors.

You will learn how to use fragments to create UIs that automatically adapt to device differences. We look closely at the roll of fragment transactions and how to work with the Android back stack. Leveraging this understanding, we then explore several specialized fragment-related classes like ListFragment and DialogFragment as well as rich navigation features like swipe-based screen browsing.

作者简介

Jim Wilson is president of JW Hedgehog, Inc., a consulting firm specializing in solutions for the Android, iOS, and Microsoft platforms. Jim has nearly 30 years of software engineering experience, with the past 13 years heavily focused on creating mobile device and location-based solutions. After nearly a decade as a Microsoft Device Application Development MVP, Jim now focuses on developing Android and iOS device applications. Jim's passion is teaching and mentoring software developers. He is a regular contributor of Android-related training materials to Pluralsight (http://training.jwhh.com), a leading provider of online developer training. Jim has authored more than 30 articles on device application development, and has developed mobility and smart client curriculums for several organizations. You can find Jim speaking at a variety of industry conferences, including AnDevCon, Microsoft Professional Developers Conference, Tech Ed, VS Live, Mobile and Embedded Developers Conference, and many others. Jim and his wife, along with several cats, live in Celebration, Florida (just 3 miles from Walt Disney World). Check out Jim's blog (http://blog.jwhh.com) where he talks about a variety of mobile software development issues as well as the fun of life just 3 miles from the "House of Mouse". You can reach Jim at androidtraining@jwhh.com.

目录信息

Preface
Chapter 1: Fragments and UI Modularization
Chapter 2: Fragments and UI Flexibility
Chapter 3: Fragment Lifecycle and Specialization
Chapter 4: Working with Fragment Transactions
Chapter 5: Creating Rich Navigation with Fragments
Index
Preface
Up
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 fragments
Summary
Up
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
Avoiding tight coupling
Abstracting fragment relationships
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
Up
Chapter 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
DialogFragment
Styles
Layout
DialogFragment display
Event handling
Dialog identity
Summary
Up
Chapter 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
Up
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 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
Up
Index
· · · · · · (收起)

读后感

评分

最近感觉Packt的书很不错阿,符合最近流行的风格——小而美。 这本书专门讲的是Fragment基础,虽然以前就用过Fragment,但是看看这本书还是挺有收获的。 特别是初学者,这本书完全应该看看。 Packt还有其他几本重点将解Fragment的书,分别是: Instant Android Fragmentation M...

评分

最近感觉Packt的书很不错阿,符合最近流行的风格——小而美。 这本书专门讲的是Fragment基础,虽然以前就用过Fragment,但是看看这本书还是挺有收获的。 特别是初学者,这本书完全应该看看。 Packt还有其他几本重点将解Fragment的书,分别是: Instant Android Fragmentation M...

评分

最近感觉Packt的书很不错阿,符合最近流行的风格——小而美。 这本书专门讲的是Fragment基础,虽然以前就用过Fragment,但是看看这本书还是挺有收获的。 特别是初学者,这本书完全应该看看。 Packt还有其他几本重点将解Fragment的书,分别是: Instant Android Fragmentation M...

评分

最近感觉Packt的书很不错阿,符合最近流行的风格——小而美。 这本书专门讲的是Fragment基础,虽然以前就用过Fragment,但是看看这本书还是挺有收获的。 特别是初学者,这本书完全应该看看。 Packt还有其他几本重点将解Fragment的书,分别是: Instant Android Fragmentation M...

评分

最近感觉Packt的书很不错阿,符合最近流行的风格——小而美。 这本书专门讲的是Fragment基础,虽然以前就用过Fragment,但是看看这本书还是挺有收获的。 特别是初学者,这本书完全应该看看。 Packt还有其他几本重点将解Fragment的书,分别是: Instant Android Fragmentation M...

用户评价

评分

Fragment应用完整讲解,android开发者推荐

评分

对于了解和学习fragment有帮助

评分

对于了解和学习fragment有帮助

评分

Fragment应用完整讲解,android开发者推荐

评分

Fragment应用完整讲解,android开发者推荐

本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美书屋 版权所有