Get enum values (from within declare-stylable) defined in xml file programmatically
问题 I develop a custom view in Android Studio. This custom view has a custom property. The possible values of this property are declared as an enum-formatted attr in a declare-stylable tag within a resources tag, all that in an xml file (see below). Even though there are quite some questions (including answers) about accessing xml-defined enums in this forum, none of those actually helps me in solving my concrete problem. From within the file customview_values.xml: <declare-styleable name=