android-components / mozilla.components.support.ktx.android.util / kotlin.Int

Extensions for kotlin.Int

Name Summary
dpToFloat fun Int.dpToFloat(displayMetrics: <ERROR CLASS>): <ERROR CLASS>
Converts a value in density independent pixels (dp) to a float value.
dpToPx fun Int.dpToPx(displayMetrics: <ERROR CLASS>): <ERROR CLASS>
Converts a value in density independent pixels (dp) to the actual pixel values for the display.