- Creating Dynamic UIs with Android Fragments(Second Edition)
- Jim Wilson
- 143字
- 2021-07-16 12:40:45
Chapter 2. Fragments and UI Flexibility
This chapter builds on the concepts introduced in the previous chapter to provide solutions to addressing specific differences in device layouts. The chapter explains the use of adaptive activity layout definitions to create apps that automatically rearrange their user interface in response to the differences in device form factors. With adaptive activity layout definitions, applications are able to support a wide variety of devices using just a few properly designed fragments.
In this chapter, we will cover the following topics:
- Simplifying the challenge of supporting device differences
- Dynamic resource selection
- Coordinating fragment content
- The role of FragmentManager
- Supporting fragments across activities
By the end of this chapter, we will be able to implement a user interface that uses fragments to automatically adapt to differences in device layouts and coordinates user actions across the involved fragments.
推薦閱讀
- 數據可視化:從小白到數據工程師的成長之路
- 分布式數據庫系統:大數據時代新型數據庫技術(第3版)
- 計算機應用基礎教程上機指導與習題集(微課版)
- Power BI智能數據分析與可視化從入門到精通
- 二進制分析實戰
- 從實踐中學習sqlmap數據庫注入測試
- Spring MVC Beginner’s Guide
- 大數據分析:R基礎及應用
- 從Lucene到Elasticsearch:全文檢索實戰
- 數據中臺實戰:手把手教你搭建數據中臺
- 成功之路:ORACLE 11g學習筆記
- 數據庫技術與應用:SQL Server 2008
- GameMaker Game Programming with GML
- 數據可視化五部曲
- 高效使用Redis:一書學透數據存儲與高可用集群