getDimension

open fun getDimension(context: Context, @DimenRes resId: Int): Int

Get a pixel dimension from the resources.

Return

The dimension, converted to pixels.

Parameters

resId

The resource ID.

Throws


Deprecated

Get a pixel dimension from the resources.

Return

The dimension, converted to pixels.

Parameters

resId

The resource ID.

Throws