package mlxy.utils;

import android.content.Context;

public class Device {
    public int dp2px(Context context, float dp) {
        return (int) Math.ceil(context.getResources().getDisplayMetrics().density * dp);
    }
}

@@ -80,16 +80,23 @@
  public 
+static 
 int dp2p

change dp2px as static