skip to Main Content

I am working through some android developer codelabs and it states the below view should be chosen.

Click Split on the top right of Android Studio, this allows you to view both code and design. You can also click Code to view code only or click Design to view design only.
enter image description here

After pressing Split you should see three areas:

enter image description here

However, this is my view.

enter image description here

Any help would be much appreciated.

I am unable to carry on with the code lab as the live preview tab is needed.

3

Answers


  1. If you

    • Right click on a file
    • Select Open in Right Split
    • The code/split/design button should appear in the top right

    I have flagged it with the Android Studio tutorial team, as you say you can’t progress the tutorial without this workaround.

    Login or Signup to reply.
  2. If you select an "Empty Activity" project
    enter image description here

    a simple layout is created for you at
    res/layout/activity_main.xml

    when you select activity_main.xml, the Code/Split/Design will be shown.

    I guess you might have created a "No Activity" project instead. Guidance at Google Hello World project.

    Login or Signup to reply.
  3. Go To File->setting->Editor->Design Tools an check this below image
    after that apply click and ok

    check this image

    if not work Go To File-> invalidate cache click after automatically restart android studio

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search