public static int dpToPx(Resources resources, float dp) {
    return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp,
        resources.getDisplayMetrics());
  }
This class provide some helpers to
instantiate the CultView correctly

@author Pedro Paulo Amorim
cult/src/main/java/com/github/ppamorim/cult/util/ViewUtil.java