androiduser-interfaceshapesandroid-layout-editor

Android Layout Editor: How do I add a simple view?


The Layout Editor's palette doesn't seem to have a blank view that I can drag in (unless my eyes are crazy).

Is there a way to drag a blank view from the palette in the Android Layout Editor onto the view I'm making (without having to type in the raw XML)?

Here's what I see under the "Common" section: Common Palette

Here's what I see when I search for "view": Palette search for view

Am I missing something?

I see a "< view >" under the "Containers" section, but that just pulls up a pop up with the same stuff that's already in the palette.

I'm new to Android dev and am coming from iOS where I can just drag a UIView right onto the storyboard. What's the equivalent of this behavior in Android?

Is there some way for me to add my own custom stuff to the Layout Editor palette?

Is typing <View ... /> in the raw XML the only way of achieving this?


Solution

  • My eyes are crazy.

    Press "Widgets" (circled in red)

    Drag in "View" (circled in green)

    found it

    Anyone able to explain why it's under "Widgets"?