android-studiographical-layout-editor

I can't find the toolbar in the layout editor in Android Studio


I'm trying to do the Android Developer Tutorial.

They refer to the toolbar in the layout editor, in the tutorial picture it looks like this:

enter image description here

But this is what I see

enter image description here.

The toolbar with the eye is missing. As you see, there is a "Toolbar"-Icon in the menu, but clicking it has no effect.

I'm using Android Studio 2.3 and followed the previous lessons of the tutorial as demanded. How can I activate this toolbar?

This is the link for building an Android UI.


Solution

  • Was having this exact issue. Spent an hour looking for a solution for this, and turns out it was really easy. Note that you will need android studio version > 2.2.

    In the activity_main.xml, look for the component tree. Likely there is a Linear_Layout or Relative_Layout. Just right click and then click 'Convert to Constraint Layout'. Done.
    This is the result: image.

    Hope this helps. Happy coding.