简体   繁体   English

Android SDK无法看到图形布局

[英]Android SDK Cant See Graphical Layout

When I open MainActivity.xml file in my layout folder of android project and click on graphical layout I can see only a gray blank screen. 当我在android项目的布局文件夹中打开MainActivity.xml文件并单击图形布局时,我只能看到灰色的空白屏幕。 The android UI is not visible in my eclipse. android用户界面在我的日食中不可见。 When I searched google and stackoverflow I found I should open the .xml file with android layout editor but this option is not available in my eclipse. 当我搜索google和stackoverflow时,我发现我应该使用android布局编辑器打开.xml文件,但是该选项在我的日食中不可用。 And when I tried to add this option from preference I don't find this option. 当我尝试从首选项添加此选项时,我找不到此选项。

  1. Go to Preferences -> General- >Editors->File Associations. 转到首选项->常规->编辑器->文件关联。
    1. If Android layout editor is missing click on Add as shown, 如果缺少Android版式编辑器,请点击“添加”,如图所示,
    2. After clicking on Add select Android Layout Editor and then click on OK. 单击添加后,选择“ Android布局编辑器”,然后单击“确定”。
    3. Close Eclipse and restart. 关闭Eclipse并重新启动。 Otherwise this will not work. 否则,这将不起作用。

SECOUND CHANSE I DID TI 1.WORKSPACE FOLDER ALL CONTENT OR FILE DELETE 2. OPEN THE ECLIPS 我已进行了海量更改1.工作空间文件夹中的所有内容或文件已删除2.打开ECLIPS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM