Here you can find the source of getCornerOffset(Context context)
public static float getCornerOffset(Context context)
//package com.java2s; import android.content.Context; import android.util.TypedValue; public class Main { private static final int DEFAULT_CORNER_OFFSET = 20; public static float getCornerOffset(Context context) { return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, DEFAULT_CORNER_OFFSET, context.getResources() .getDisplayMetrics()); }/*from ww w . ja va 2 s . c o m*/ }