Shortcut to switch between design and text in Android Studio

后端 未结 14 768
孤街浪徒
孤街浪徒 2020-12-13 08:51

Does anyone know some shortcut to switch between design and text in android studio while editing XML layout?

While I can switch from design view to source using

14条回答
  •  春和景丽
    2020-12-13 09:02

    Good Question:

    There are 2 ways:

    • If You are on a Activity ( Design or Text)

      1) left click on Text or Design 2) ALT + SHIFT + Right/Left arrow key

    • If You are on a class

      1) click on the name of the activity: example: click on activity_actividad2_blank setContentView(R.layout.activity_actividad2_blank);

      2) click on Project goto to java class left click on class and click on "Find Usages" ( Or ALT + F7) double click on result you want to go.

    Have a good programming.

提交回复
热议问题