public static float convertDpToPixels(float dp, Context context){
        Resources resources = context.getResources();
        DisplayMetrics metrics = resources.getDisplayMetrics();
        float px = dp * (metrics.densityDpi / 160f);
        return px;
    }
Converts the input dp unit to pixels, depending on device density.

@param dp A value in dp (density independent pixels) unit. Which we need to convert into pixels
@param context Context to get resources and device specific display metrics
@return A floating point value to represent px equivalent to dp depending on device density.
core/src/main/java/com/filebrowser/Utils/Utils.java