Remove All Ads from XDA

Drag-n-Drop not working in Android Studio Designer

2 posts
Thanks Meter: 0
By RogerInHawaii, Junior Member on 8th February 2014, 04:01 AM
Post Reply Email Thread
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?
8th February 2014, 04:14 AM |#2  
OP Junior Member
Thanks Meter: 0
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.
7th November 2015, 09:55 PM |#3  
Junior Member
Flag Paris
Thanks Meter: 0
Thanks Roger! your own reply helped me too wikiwiki !
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes