加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

构建没有XML的Android应用程序

发布时间:2020-12-16 07:48:16 所属栏目:百科 来源:网络整理
导读:我是否必须使用 XML在 Android应用程序中构建界面?我不喜欢XML,我宁愿用Java编写接口. 在iOS中,您可以使用Interface Builder / Storyboards编写接口,或者您可以手动编写代码,我认为这样做更好. 我必须在Android上使用XML吗? 您可以避免使用XML(但不能使用M
我是否必须使用 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 information
about the application to the Android system,information 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(尝试在发布前搜索)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读