构建没有XML的Android应用程序

我是否必须使用 XMLAndroid应用程序中构建界面?我不喜欢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(尝试在发布前搜索)

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念