I have an image of a face (250px X 250px) that is in an absolute layout element. I currently get the user\'s touch coordinates and using some maths calculate what has been t
public int getDip(int pixel) { float scale = getBaseContext().getResources().getDisplayMetrics().density; return (int) (pixel * scale + 0.5f); }