快捷方式打开Eclipse中的Andr​​oid XML布局 [英] Shortcut to open Android XML layout in Eclipse

查看:148
本文介绍了快捷方式打开Eclipse中的Andr​​oid XML布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,如果我有这样的事情

For example, if I had something like

setContentView(R.layout.activity_main);

会不会有一个快捷方式打开 activity_main.xml中?如果没有,有没有一种方法来创建一个?

Would there be a shortcut to open activity_main.xml? If not, is there a way to create one?

推荐答案

它的存在。只需按住<大骨节病>控制,移动光标到单词 activity_main 这是该行的setContentView(R.layout.activity_main); 那么,它会给出两个选择,一个是打开XML的布局,另外一个是开放的 R.java 文件中的声明。这是很容易打开XML布局的快捷方式。

Its there. Just hold Ctrl and move the cursor to the word activity_main which is the line setContentView(R.layout.activity_main); then, it will be give two option that one is for opening xml layout and another one is opening the declaration in R.java file. This is the shortcut to open the XML layout easily.

干杯!

这篇关于快捷方式打开Eclipse中的Andr​​oid XML布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆