android - Material Design checklist: hiding app bar on scroll? -
per new android material design checklist:
http://android-developers.blogspot.com/2014/10/material-design-on-android-checklist.html
where appropriate, upon scrolling down, app bar can scroll off screen, leaving more vertical space content. upon scrolling up, app bar should shown again.
i realize there lots of questions/answers implement behavior ics-style app bar, i'm curious if new toolbar widget or lollipop/appcompat 21 have introduced more standard way of achieving effect.
per roman nurik on google+ (essentially @tyczj mentioned)
https://plus.google.com/u/0/+romannurik/posts/3g8zyvn5orc
it's not built in relatively simple implement. observe scrolling , animate y translation. utilize "quick return" sample +nick butcher , published few years ago
i believe illustration referenced is: https://code.google.com/p/romannurik-code/source/browse/misc/scrolltricks
update: discovered great library this, along other great tricks https://github.com/ksoichiro/android-observablescrollview
android android-5.0-lollipop material-design
No comments:
Post a Comment