appdimens-dynamic

//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.code.perimeter/prhspLw

prhspLw

fun Number.prhspLw(context: Context): Float

EN Extension for Int with dynamic scaling based on the Screen Height (hDP), but in landscape orientation it acts as Screen Width (wDP). Usage example: 32.prhspLw(context).