Creating Dynamic UI with Android Fragments

Ebook Details


Jim Wilson

Year 2013
Pages 122
Publisher Packt Publishing
Language en
ISBN 9781783283095
File Size 2.3 MB
File Format EPUB
Download Counter 2,336
Amazon Link

Ebook Description

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).