Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,414 Members 53,960 Now Online
XDA Developers Android and Mobile Development Forum

Drag-n-Drop not working in Android Studio Designer

Tip us?
 
RogerInHawaii
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Feb 2014
Default Drag-n-Drop not working in Android Studio Designer

I've just started using the Android Studio version of IntelliJ and am following a simple tutorial to create my first app. I'm at the design stage for designing the user interface for the app. It shows a graphic of the smartphone and the "Pallette" section that shows all the possible UI objects. Normally I would be able to drag-n-drop any of those objects over onto the layout form. But when I do that, nothing happens. The UI object (e.g. a Button) does NOT end up in the layout and it also does not end up in the Component Tree.

How do I get drag-n-drop to work for the layout design?
 
RogerInHawaii
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Feb 2014
Default Figured it out

I figured it out. Even though the design panel is visible as well as the Palette and Component Tree I ALSO need to have app/src/main/res/layout/fragment_main.xml selected over in the Project panel in order for the actual design of the layout to be enabled.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes