List of usage examples for android.util TypedValue complexToDimensionPixelOffset
public static int complexToDimensionPixelOffset(int data, DisplayMetrics metrics)
From source file:Main.java
public static int calculatePixelsFromDips(int dip, DisplayMetrics metrics) { return TypedValue.complexToDimensionPixelOffset(dip, metrics); }