S
S
samarjan2015-02-20 08:35:13
Android
samarjan, 2015-02-20 08:35:13

Why does the animation start to lag after view.setX()?

I have a widget that can be moved around the screen i.e. in OnTouch, when I move it, I call the setX and setY () methods, but after that, calling the view.startAnimation () animation, it works with terrible artifacts, if you do not write setX and setY () - then everything will be fine.
Tell me how it would be possible to fix this or in what other way you can move the widget without SetX(), SetY

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2015-02-20
@samarjan

Moving the widget is generally not recommended. If suddenly, God forbid, you are writing a game - do not do it on standard widgets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question