Android create edit text animation like Chrome -
chrome updated on android. believe version 38 maybe?
the new tab search box translates url address box. i'm not quite sure how this.
this couple version older found post from: http://www.omgchrome.com/google-chrome-android-material-design-beta/ describing details behind it:
http://i.imgur.com/fvcj21k.gif
any help appreciated. , know isn't l preview thing, because production version of chrome running on latest version of kitkat 4.4.4.
from observation, might give thought used , thought math
search edittext
set below google logo, both of them wrapped within scrollview
, kind of observablescrollview
.
shrinking , lengthening of edittext
done amount of pixels (percentage) scrolled respect google logo. hence, logo faded-out/in.
lengthening , shrinking changing right
coordinate.
when logo view off screen, edittext set custom view in actionbar.
returning appropriate place done if logo scrolled >= 50% returns actionbar/toolbar
, otherwise returned starting position.
worth mentioning edittext
not clickable during scroll, viewoverlay
animating purposes. i'm doing guesswork here.
also reading on monitoring scrollviews such purposes here.
android google-chrome android-animation material-design
No comments:
Post a Comment