code: public static float sipToPixel(Resources resources, float sip) {
          float density = resources.getDisplayMetrics().scaledDensity;
          return sip * density;
      }
docs: Convert the sip to pixels, based on density scale.
  @param resources application resources.
  @param sip to be converted value.
  @return converted value(px)