Creating an empty Drawable in Android

前端 未结 8 904
陌清茗
陌清茗 2021-02-05 00:15

Creating a Drawable that is completely empty seems like a common need, as a place holder, initial state, etc., but there doesn\'t seem to be a good way to do this... at least in

8条回答
  •  一整个雨季
    2021-02-05 00:41

    Kai, I don't know why this is the case, but I've gotten the same issue. I think it might be related to the version of Android you're compiling for? In any case, I found that simply using @android:id/empty where you would use @android:drawable/empty does the trick.

提交回复
热议问题