This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Extension function to convert SDP dimension to pixels | |
| fun Context.sdpToPx(sdpResourceId: Int): Float { | |
| return TypedValue.applyDimension( | |
| TypedValue.COMPLEX_UNIT_PX, | |
| resources.getDimension(sdpResourceId), | |
| resources.displayMetrics | |
| ) | |
| } | |
| fun Context.sdpToDp(sdpResourceId: Int): Float { |