[android-developers] WindowManager laggy when updating multiple views

2016-07-05 Thread Rodrigo Pontes
I am trying to move multiple ImageViews attached to the WindowManager but after adding three views, the movement becomes very choppy. After some investigation I think this is caused by calling updateViewLayout too many times and on different views. The code below is a simplified version of what

[android-developers] WindowManager laggy when updating multiple views

2016-07-05 Thread Rodrigo Pontes
I am trying to move multiple ImageViews attached to the WindowManager but after adding three views, the movement becomes very choppy. After some investigation I think this is caused by calling updateViewLayout too many times and on different views. The code below is a simplified version of what