px = dp * 单位像素 单位像素来源于手机自身。 Context.getResource().getDisplayMetrics().xdpi/DisplayMetrics.DENSITY_DEFAULT。这样就可以得到单位像素点。