Сообщения

Collapsing Toolbar Layout

Изображение
Design Support Library (IV): Collapsing Toolbar Layout by  Antonio Leiva  |  Blog ,  Development  |  62 comments One of the most amazing things about  Design Support Library  is that we can create lively animated UIs with some simple configuration in XML. No code nor deep control about scrolls is required, so the process becomes really easy. We saw that  Coordinator Layout  is the central point the other components rely on to work properly, and that  AppBarLayout  helps the toolbar and other components to react to scroll changes. Today, I’ll show you how to use  Collapsing Toolbar Layout  to create awesome effects in a very easy way. If you remember, I was changing my  MaterializeYourApp repository  code to start using the Design Support Library. Today I’ll change the detail screen, and we’ll get something like this: Add a Coordinator Layout This is the first thing you need. All the new components use a new concept called  Behavior  that is used by the Coordinator La