Skip to content Skip to sidebar Skip to footer

How To Translate A View, But Keep It's Original Starting Position

I am animating a view so that a bottom navigation bar is hidden when the keyboard appears. My issue is that I can translate away the bottom navigation bar and the main 'message ar

Solution 1:

I ended up testing two things, the first from this stack overflow answer which adjusts the actual height of the layout, which did work, but wasn't as smooth as I would have liked.

The second being this library which uses ValueAnimators and provided a much smoother animation as well as further functionality. I ended up sticking with this library as it gives much better results visually and is simple to customise.

Post a Comment for "How To Translate A View, But Keep It's Original Starting Position"