I want to move the image around the screen according to the movement of the trackball. I can capture movements using the onTrackballEvent method. But this is caused by very small float values (I think for each rotation?) Of the Trackball.
Now that the X and Y positions of the views should be integers when referenced using LayoutParams, it makes no sense to move the view at every turn. Instead, I want to move the view only after the user stops rotating the trackball.
Is there any method by which we can get whether the user stops using the trackball or not?
source
share