在Android Studio中找不到布局和类

时间:2015-03-05 14:19:08

标签: android-studio

我是Android工作室和Java的菜鸟,我确实有一个坚实的c#背景,但我似乎无法解决这个问题:

我的一些合作伙伴要求在其他人创建的以前的android版本中添加一个按钮,所以我下载了Android studio并导入了该项目,但我似乎找不到任何内容。我们无法联系项目的创建者询问他开发应用程序的内容。

enter image description here

如您所见,项目中没有布局。 这就是项目文件夹的样子: enter image description here

我可以在哪里编辑布局?我在错误的IDE中吗?

由于

1 个答案:

答案 0 :(得分:0)

如果要更改布局,可以执行以下两项操作:

选项1 1.只需单击您的Xml文件,然后选择屏幕底部的“文本”选项

enter image description here

2.更改布局

enter image description here

选项2

1.只需在Design中拖动另一个布局并将您的项目放入其中,删除旧的布局PS。你可以在其他布局中使用布局

enter image description here

enter image description here

现在,就像Layouts一样,看到课程只是做...

enter image description here

双击后,它会弹出一个新标签。

enter image description here

PS这有点重复,尝试先搜索你的问题而不是提出新问题

链接到重复:Android Studio - How to change layout