Code example for ImageView

Methods: getLayoutParamssetLayoutParams

0
		this.markerID = markerID;
	} 
 
	private void setDragImagePosition(int x, int y) {
		RelativeLayout.LayoutParams lp=
				(RelativeLayout.LayoutParams)dragImage.getLayoutParams();
 
		lp.setMargins(x-xDragImageOffset-xDragTouchOffset,
				y-yDragImageOffset-yDragTouchOffset, 0, 0);
		dragImage.setLayoutParams(lp);
	} 
 
	public String getLocationFormatedString() {
		return new StringBuilder().append(location.getLatitudeE6() / 1E6).append(", ").append(location.getLongitudeE6() / 1E6).toString();
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java