code: public static int sp2px(Context context, float spVal) {
          return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP,
                  spVal, context.getResources().getDisplayMetrics());
      }
docs: sp转px
  
  @param context
  @return