18

How can I enable the text/design Tab on the a src/main/res/layout folder on the activity_main.xml file that was created automatically during create new project? If i do right click and create xml file on the said folder, the design/text tab exist. Any suggestion? Thanks.

No Text/Design Tab on the Bottom Part of the Android Studio

Creating a new XML in the Res/Layout Folder, the design/text tab is now present.

Any help? this is super weird guys...

Rami
  • 7,879
  • 12
  • 36
  • 66
The One
  • 1,085
  • 6
  • 13
  • 25
  • I had this problem from a fresh install and new project created by the wizard. No tabs. Close file, re-open (wasn't in recent files!) from project pane, and now it has Design/Text tabs. Buggier than Eclipse! – Nick Westgate Oct 11 '13 at 23:33
  • Did you build the project? If not, you need to do this. – Alston May 22 '19 at 09:39

14 Answers14

88

In Android Studio 3.6 use these three buttons (Code | Split | Design), on top right, to switch between views.

Split button at top right

Darush
  • 11,403
  • 9
  • 62
  • 60
6

I had the same problem, restarting the IDE did make that tab appear again.

NoPinky
  • 76
  • 1
5

On Android Studio 3.6.1 Top Right corner under the main toolbar you have three different icons (Code, Split, Design).

Pablo Cruz
  • 91
  • 1
  • 6
4
View -> Tool windows -> Preview .

Output view:

David Medenjak
  • 33,993
  • 14
  • 106
  • 134
4

use the three buttons (Code|Split|Design)on top right hand side to switch between views.

mayor
  • 41
  • 1
3

I also had this problem after upgrading to 1.5. None of the above suggestions worked for me. I noticed that the default relative layout xml has changed with a third xmlns line and an app behavior line. I opened an older project and copied the old relative layout header to replace the new. Instantly the preview function was restored.

JonSides
  • 31
  • 1
  • 5
3

You can also Move between Design / Text tabs in layout’s view with simple shortcut: (Mac) : control + shift + ← / → (Windows / Linux): alt + shift + ← / →

Oren Zakay
  • 519
  • 8
  • 17
3

On the top right corner of the activity_main.xml file view, there are 3 icons representing "Code", "Split" and "Design". Click on the leftmost icon of the three ("Code") for the text tab.

Saakshi
  • 95
  • 8
2

In the android Studio window, at the left side there are two options available(Project and Resource Manager). Go to resource and there you will see an ADD Module option, click on that. After this you will see your text and design option will get enabled, you can go to your work area by Project Name->app ->src ->main->res ->layout.

Amit Kumar
  • 21
  • 2
0

Yes, Even I had the same problem. For the first time... I think It wont show, restarting the IDE did make that tab appear again.

0

I had this problem too, I deleted all the preference files, such as the AndroidStudioPreview folder & com.google.android.studio.plist, then restarted android studio, it worked.

0

You do not need to restart an IDE. All you need is to close an xml file that does not get a tab and reopen it within an editor. It is a little bug.

user3081519
  • 2,659
  • 5
  • 25
  • 35
0

Navigate to activity_main.xml tab then Design and Text tab appears. It doesn't appear in MainActivity.java tab. You do not need to restart IDE.

0

If text/design tab is missing in new android studio, this can solve by two methods. You have re-install android studio. And don't forget to delete android studio related all files from temp and local. Or you can re-install SDK (software development kit) according to your device.