tags:

views:

466

answers:

2

I need to move an ImageView (or anything else, for that matter) around inside a RelativeLayout. Does any one know the proper way to do this?

A: 

mImageView.scrollBy(xOffset, yOffset);

Dave
A: 

It is very easy. You can implement onTouchListener event of any control you want and set its x,y position like make a new Layoutparams set its x,y and assign to view as view.setLayoutParam(layoutParams); it will drag the view.

Adnan