4

I'm designing an activity using the regular designer, and I want to drag and drop an new ImageView into the layout using designer (I know how to do it in XML). However, I can't click OK without selecting a source image, which I won't select because I'll be loading a remote image in code:

enter image description here

Sure, I can pick a random drawable and then remove it after creating, or I can just create it in XML. I was wondering why Android Studio forces me to pick a drawable. Am I missing something, or is it just bad UX?

4

1 回答 1

-1

您可以从资源窗口然后android中选择颜色选项卡,然后选择透明的颜色,就这么简单。

于 2018-08-08T11:39:28.637 回答