Search code examples
xamarinvisual-studio-2017

Xamarin in VS 2017 ramp up: cant drag a button from toolbox


At first I had errors related to NuGet packages, now my system is stable, or at least I don't see errors displayed.

The problem: When I select (Button, for example) from the tool box to the layout of activity_main.axml, the system wont let me drop it, showing "no entry" sign. enter image description here Any idea what did I miss?

enter image description here


Solution

  • Please chanage your RelativeLayout to LinearLayout, And added android:orientation="vertical" to the activityMain.axml

    You can drag the button to your layout like this gif. enter image description here