resolve Dimension
@Px
Returns the pixel value of the dimension specified by attributeResId. Defaults to defaultDimenResId if attributeResId cannot be found or is not a dimension within the given context.
open fun resolveDimension(@NonNull theme: Resources.Theme, @AttrRes attributeResId: Int, defaultValue: Float): Float
Returns the pixel value of the dimension specified by attributeResId or null if attributeResId cannot be found or is not a dimension in the given theme.