In favorites, because I would like to be proved wrong on this, but I came across a similar wall when I jumped back several times.
I'm sure you are stuck with offsetTopAndBottom() and offsetLeftAndRight() to move the View around without animation in the early APIs. The big drawback is that these methods actually change the top / bottom / left / right values, so you need to do some pretty heavy tracking if you want to get back to where you started.
Another option would be to simply use TranslateAnimation with a VERY short duration and set to fillAfter ...
Other parameters require subclassification and are still not very good, for example, when translating Canvas View . The problem here is that you also have to create a parent who does not loop it over children so that the view can draw beyond its own boundaries.
Devunwired Jan 04 2018-12-21T00: 00Z
source share