Here you can find the source of getLineThickness(Context context)
public static float getLineThickness(Context context)
//package com.java2s; import android.content.Context; import android.util.TypedValue; public class Main { public static final int DEFAULT_LINE_THICKNESS = 5; public static float getLineThickness(Context context) { return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, DEFAULT_LINE_THICKNESS, context.getResources() .getDisplayMetrics()); }//from w w w .j a va 2 s. com }