getResourceId

Pick resource id from com.android.internal.R

Return

internal resource id in integer, for example: com.android.internal.R.xml .audio_assets returns 17891329 in integer.

Parameters

clas

for example = string, drawable, color, style, id, attr. And they will be wrote as com.android.internal.R.drawable

resName

for example = cancel, ic_launcher, activity_main

open fun getResourceId(clas: String, resName: String): Int