enter image description here我是android studio的初学者。在这段代码中没有activity_main.xml文件。
提前谢谢。
发布于 2020-08-09 21:58:57
请不要与库和实际应用程序混淆。
https://github.com/jahirfiquitiva/Frames是一个你可以使用gradle include into your project/app的库-
dependencies {
implementation('dev.jahir:Frames:3.3.0'@aar) {
transitive = true
}
}导入后,您可以创建应用程序,然后可以将admod放入应用程序的主布局文件中。
编辑(缺少布局文件夹)
如果文件夹不在那里或在创建项目时没有自动添加,则需要通过以下方式将其添加到项目中:
res文件夹创建res文件夹后,还可以添加layout文件夹
从打开的菜单中,
现在您有了XML文件,您可以在活动/片段中使用它。有关更多信息,请查看this和this。
祝你编码愉快!
https://stackoverflow.com/questions/63326637
复制相似问题