【发布时间】:2014-12-02 04:45:22
【问题描述】:
Android Studio 0.8.11
你好,
我刚刚在 Android 上完成了一项测试,该测试旨在构建一个接收实时新闻提要并显示它们的应用。但是,老师非常挑剔,因为我将所有课程都放在一个包中。
我只是想知道打包类的最佳做法是什么。对于我的特定测试,我在这个包名下有以下类:
com.viewsys.ncon
我的课是:
DBHelper <-- database creating and ugprading
DetailActivity <-- activity that add the NconDetailFragment
NconContract <-- properties of the database schema columns, table name
NconDetailFragment <-- detail fragment
NconListFragment <-- list fragment
NconViewPager <-- just the view pager
JsonNewsFeed <-- class that downloads and parses the json format
MainActivity <-- Main activity
NewsFeed <-- class of properties getters/setters for news feed
NewsFeedDB <-- simple array list to store all the object from the sqlite3 DB
SplashActivity <-- activity that add the splashFragment and the NconListFragment
SplashFragment <-- splash fragment
Utilities <-- just some simple utility functions
非常感谢您的任何建议,
【问题讨论】:
-
对我来说你做得很好。你只有十三节课。无需将它们存放在不同的目录中。