wdpPh
April 11, 2026 ยท View on GitHub
//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.code/wdpPh
wdpPh
fun Number.wdpPh(context: Context): Float
EN Extension for Int with dynamic scaling based on the Screen Width (wDP), but in portrait orientation it acts as Screen Height (hDP). Usage example: 100.wdpPh(context).