2015-01-10 68 views
0

我有最新的AndroidStudio,我正在嘗試使兩個佈局之間的導航器鏈接。但我無法這樣做,GUI顯示沒有選項可以鏈接。你能幫我嗎?AndroidStudio - 導航編輯器鏈接

的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> 

GUI的IDE看起來像如何使用AndroidStudio的導航編輯本http://postimg.org/image/7n7kymv7f/

Android的原文檔是沒有多大幫助。

-Rajdev

回答

1

http://tools.android.com/navigation-editor

「添加從控制轉變(如按鈕和菜單項)其他活動 - 通過按Shift鍵用鼠標拖動(CTRL/ALT也可以)」

+0

如果你是在Mac上:移動一個拖動OR命令+選項(ALT)點擊按鈕,菜單並拖動... –