2

I recently migrated from ADT to Android Studio. I am not able to get the drag and drop feature in the design tab to function properly. In the screenshot attached, I want to drag down the textView from the Palette but the textView will not move below that horizontal line that you can see. I never experienced something like this in ADT and I couldn't find a solution online.

Android Studio design tab

Thanks

stkent
  • 19,772
  • 14
  • 85
  • 111
user1949723
  • 23
  • 1
  • 5

2 Answers2

1

Your root ViewGroup is a vertically-oriented LinearLayout. By design, this ViewGroup arranges its children sequentially (in this case, top-to-bottom). You will need to use a different ViewGroup (e.g. a RelativeLayout) to accommodate the more flexible positioning you describe.

stkent
  • 19,772
  • 14
  • 85
  • 111
0

If you create a new project, you can choose Empty Activity template instead of Blank Activity. If you create a new activity, you can choose Empty Activity instead of Blank Activity too.

Can't add any items to activity_main.xml in Android Studio

Community
  • 1
  • 1
Abdul Khaliq
  • 2,139
  • 4
  • 27
  • 31