Search code examples
androidsetdrawable

Can't create drawable file when the root label is <set>


As you can see, there is no auto-complete option for set label:

enter image description here


Solution

  • Root tag <set> is not allowd for drawable files. It is only available for anim files i.e. only files kept in anim folder can have <set> as root tag.

    For drawable files we can have tags like <shape>, <layer-list>, <selector> etc. refer this link for more information about drawable resources.