Here you can find the source of layoutViewAtPos(View view, int offsetX, int offsetY)
public static void layoutViewAtPos(View view, int offsetX, int offsetY)
//package com.java2s; import android.view.View; public class Main { public static void layoutViewAtPos(View view, int offsetX, int offsetY) { view.layout(offsetX, offsetY, offsetX + view.getMeasuredWidth(), offsetY + view.getMeasuredHeight()); }/*from www . j av a 2 s. c o m*/ }