Android - Create app with pure Java and no XML?

前端 未结 6 926
清酒与你
清酒与你 2020-12-08 14:38

I\'m wondering if it is possible to create an Android app with only Java. No XML, no other things.

In Eclipse, when I create a new Android Project, the Manifest xml-

6条回答
  •  伪装坚强ぢ
    2020-12-08 15:21

    It is possible to create all layout files from code. But it's reccomended to use the layout XML files.

    The AndroidManifest.xml can not be replaced by code, since the system relies on the data included in this file.

提交回复
热议问题