Assign densityDpi instead of xdpi.