val Int.dpToPx: Int get() = (this * Resources.getSystem().displayMetrics.density + 0.5f).toInt() val Int.pxToDp: Int get() = (this / Resources.getSystem().displayMetrics.density + 0.5f).toInt()