Skip to content

Instantly share code, notes, and snippets.

@mklkj
Created May 19, 2021 15:08
Show Gist options
  • Save mklkj/e8cbb707c98a4caa32f08f721a513a70 to your computer and use it in GitHub Desktop.
Save mklkj/e8cbb707c98a4caa32f08f721a513a70 to your computer and use it in GitHub Desktop.
Reverse lookup of android resource id
R.id::class.java.declaredFields.map { it[0] to it.name }.toMap()[2131296765]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment