public static int dpToPx(int dp) { return (int) (dp * Resources.getSystem().getDisplayMetrics().density); }
public static int pxToDp(int px) { return (int) (px / Resources.getSystem().getDisplayMetrics().density); }
댓글 없음:
댓글 쓰기