“Minimal” source files to create Android app using Eclipse + ADT

前端 未结 3 1336
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-02 13:48

I am trying to understand the anatomy of a MINIMAL Android application, using Eclipse + ADT (Android Development Toolkit).

Please can you advise what is the MINIMAL

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-02 14:00

    You can actually get away with just a single MyActivity.java and the manifest file, if you inflate the layout programatically. Later Eclipse Tools will create many more files (in ..drawables, layout, menu, values) by default. You can however delete them all if you make sure that the manifest doesn't refer to any icons or strings. I guess it's not seen as good practice, but it can be done.

提交回复
热议问题