我是否必须使用
XML在
Android应用程序中构建界面?我不喜欢XML,我宁愿用Java编写接口.
在iOS中,您可以使用Interface Builder / Storyboards编写接口,或者您可以手动编写代码,我认为这样做更好.
我必须在Android上使用XML吗?
您可以避免使用XML(但不能使用Manifest文件:AndroidManifest.xml).
来自Android网站:
Every application must have an AndroidManifest.xml file (with
precisely that name) in its root directory.The manifest presents essential @R_122_4045@ion
about the application to the Android system,@R_122_4045@ion the system
must have before it can run any of the application’s code. Among other
things,the manifest does the following:
您可以在这里获得更多信息:Create App without XML(尝试在发布前搜索)