我有最新的AndroidStudio,我试图在两个布局之间建立一个navigationeditor链接。但我无法这样做,GUI显示没有链接选项。你能帮忙吗?
main.nvg.xml内容为
<?xml version="1.0" encoding="UTF-8"?>
<navigationModel
ns = "http://schemas.android.com?import=com.android.tools.idea.editors.navigation.model.*">
<locations
class = "java.util.ArrayList">
<statePointEntry>
<state
class = "com.android.tools.idea.editors.navigation.model.MenuState"
xmlResourceName = "menu_activity20"/>
<point
x = "2708"
y = "480"/>
</statePointEntry>
<statePointEntry>
<state
class = "com.android.tools.idea.editors.navigation.model.MenuState"
xmlResourceName = "menu_main"/>
<point
x = "1760"
y = "320"/>
</statePointEntry>
<statePointEntry>
<state
class = "com.android.tools.idea.editors.navigation.model.ActivityState"
className = "com.example.test.Activity20"/>
<point
x = "1440"
y = "480"/>
</statePointEntry>
<statePointEntry>
<state
class = "com.android.tools.idea.editors.navigation.model.ActivityState"
className = "com.example.test.MainActivity"/>
<point
x = "160"
y = "160"/>
</statePointEntry>
</locations>
</navigationModel>
IDE上的GUI看起来像http://postimg.org/image/7n7kymv7f/
关于如何使用AndroidStudio导航编辑器的Android原创文档没有多大帮助。
-Rajdev
答案 0 :(得分:1)
来自http://tools.android.com/navigation-editor
“从控件添加过渡(例如按钮和菜单项)到其他活动 - 通过鼠标移动拖动(ctrl / alt也可以)”