getResourceDrawableId

fun getResourceDrawableId(context: Context, name: String?): Int