Thank you very much Erel. How I understood I must do all calculations inside code and then edittext.setlayout with this parameters ? Also one problem that I have images for different densities - ldpi , mdpi , hdpi , xhdpi and xxhdpi made according to Google designer guidlines and i have only right places of edittext forms for mdpi image. I think I understand that doesn't matter because I know scale factor of image 0.75 , 1 , 1.5 ,2 ,3.