![]() ![]() In our case both Fragments will display a list of items, so they will be the same. So we’ll need a ViewPager which will be showing two Fragments. Our demo will have 2 tabs with lists of items on each tab. Now we can create our PartThreeActivity and fill it with some data. And as you can see there is also a new one at the end compile ':design:22.2.0'. It’s just updated SDK, build tools and libraries to the newest version. ![]() In order to use the new cool features that Design Support Library has to offer we need to modify our adle file: I’m happy to tell you that thanks to CoordinatorLayout all these problems are gone :) Let’s begin! Many of you had a problem with tabs and lists that contain too few items to scroll. But now we have the Design Support Library and we don’t have to write it on our own! I will show how to use CoordinatorLayout and create a simple Behavior to hide/show Toolbar and FAB when list scrolls up/down. ![]() In previous parts I showed how to manually achieve hiding/showing Toolbar when list is scrolling. This is a third (and the really last) post of this series :) If you haven’t read part 1 or part 2 that’s ok because they are deprecated now. Archive Feed Github Twitter How to hide/show Toolbar when list is scrolling (part 3) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |