The document discusses the Android Design Support Library which provides components that help developers implement Material Design in their Android apps. It describes key components like the Floating Action Button, Text Input Layout, Snackbar, Tabs, CoordinatorLayout, AppBarLayout, NavigationView and CollapsingToolbarLayout. It provides details on what each component is used for and how it works with examples of usage and code snippets.
2. About
Me
Ibnu Sina Wardy
Google Developer Expert, Android
CEO of PT GITS Indonesia (gits.co.id)
3. Ibnu Sina Wardy
Google Developer Expert, Android
CEO of PT GITS Indonesia
Floating Action Button
Text Input Layout
Snackbar
Tab
Progress: 1%
Coordinator Layout
Navigation View
14. Snackbar
Providing lightweight, quick feedback about an operation
Snackbars are shown on the bottom of the screen and contain text
with an optional single action
Users can swipe them away before the timeout
They automatically time out after the given time length by
animating off the screen.
23. CoordinatorLayout with FloatingActionButton & Snackbar
• CoordinatorLayout resolve the issue of snackbar
displaying over the FloatingActionButton.
• FloatingActionButton automatically moves upward
as the snackbar animates in and returns to its
position when the snackbar hides.
• CoordinatorLayout enables user to swipe snackbar
away before the timeout.
25. CoordinatorLayout with AppBarLayout
• AppBarLayout allows your Toolbar and other views (such
as tabs provided by TabLayout) to react to scroll events in
a sibling view.
• the AppBarLayout can respond to those events by using
the children’s scroll flags.
• Toolbar reacts to scroll events in a sibling view
app:layout_scrollFlags="scroll|enterAlways"
• TabLayout remains pinned to the top of the screen while
Toolbar view collapses.
• includes a layout with CardView views
29. CollapsingToolbarLayout
• CollapsingToolbarLayout to ensure that
the Toolbar itself remains pinned to the
top of the screen while the view collapses.
• Toolbar title will automatically appear
larger when the layout is fully visible, then
transition to its default size as it is
collapsed.
33. Navigation View
• NavigationView makes adding navigation drawer to your app easier
than before.
• You can inflate your navigation items through a menu resource.
• NavigationView should go inside DrawerLayout.
• app:headerLayout attribute controls the (optional) layout used for the
header.
• app:menu attribute is the menu resource for the navigation items
(which can also be updated at runtime).