In my current project, I need to iterate each of the children available in StateListDrawable.
In the source code of StateListDrawable.java, I find a method:
public Drawable getStateDrawable (index int)
but the annotation of this method is @hide, which means that I cannot use it.
So, is there an alternative way to achieve this?
source share