Android> = Honeycomb (self-learning)
view.setX(x); view.setY(y);
Android <Cells Instead of directly setting it to a position, you will say "set it six pixels from the border left / top / right / bottom".
RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT); lp.setMargins(x, y, 0, 0); view.setLayoutParams(lp);
Simon schubert
source share