-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Creating Dynamic UIs with Android Fragments - Second Edition
By :
Incorporating meaningful motion is the central idea of material design. As developers, we're encouraged to use motion to enrich user experience, especially when the user moves from one screen to the next. To simplify incorporating motion in fragment transitions, the Fragment class includes features that greatly simplify animating the transition from one fragment to another.
The fragment transition features we will cover in this chapter are available on the native Fragment class starting in API 21 and are available to earlier Android versions with the Fragment class in v4 of Android Support Library.
Let's first look at adding a simple motion of sliding the items from one fragment off the screen and sliding the items for the next fragment onto the screen.
Android has supported animating views since the platform's initial release. The problem is that managing the details of animating individual views...
Change the font size
Change margin width
Change background colour