Android: Is it possible to use string/enum in drawable selector?

前端 未结 3 634
小鲜肉
小鲜肉 2021-02-18 16:26

Questions

Q1: Has anyone managed to get custom string/enum attribute working in xml selectors? I got a boolean attribute working by following [1], bu

3条回答
  •  伪装坚强ぢ
    2021-02-18 16:59

    Sorry, you cannot create custom drawables in xml : https://groups.google.com/d/msg/android-developers/glpdi0AdMzI/LpW4HGMB3VIJ

提交回复
热议问题