My android studio layout manager lost fuction

Viewed 50

My android studio layout manager only has these two options, I don’t know what went wrong... I tried deleting the SDK and clearing the cache, but it still can’t return to normal...like this picture.Usually it should be like this . But when I create a new project, it is normally Show its toolbar

1 Answers

The components of that specific dropdown and all the icons next to it highly depend on which widget (ConstraintLayout, TextView, ImageView, etc.) is selected in the Code section (where your text cursor actually is in the file).

If the root container (most of the time a ViewGroup) is selected you'll see:

enter image description here

If any other widget is selected inside that ViewGroup (container) you'll get what you're after:

enter image description here

And worth mentioning that you will be shown something different (but relevant) when the selected widget is not inside a ConstraintLayout but some other ViewGroup:

enter image description here

Related