0

I'm trying to get the id of an attribute programmatically, for example:

val attr = R.attr.textAppearanceHeadline1

Is there anyway to get "textApperanceHeadline1" (the name of the attribute reference) from the variable attr?

Kasım Özdemir
  • 5,414
  • 3
  • 18
  • 35
user12507977
  • 361
  • 1
  • 3
  • 7

0 Answers0