How to insert ImageView without an image in Android Studio's designer view?

2k Views Asked by At

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?

1

There are 1 best solutions below

1
On

You can select color tab from resource window then android and then select color as transparent as simple as that.