I have a RelativeLayout in which i have one ImageButton. I need the position parametres of this item and I don,t know how to get them.
I have try with:
ImageButton user = (ImageButton) findViewById(R.id.User);
int x =user.getTop();
int y =user.getLeft();
But the result is allways 0;
Thank you.