We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba52fd2 commit 20583c6Copy full SHA for 20583c6
lib/src/main/java/com/sn/lib/ext/Extensions.kt
@@ -0,0 +1,7 @@
1
+package com.sn.lib.ext
2
+
3
4
+import android.content.res.Resources.getSystem
5
6
+val Float.dp: Float
7
+ get() = (this * getSystem().displayMetrics.density + 0.5f)
0 commit comments