Android Studio 0.8.11
हैलो,एंड्रॉयड
मैं बस जो एक ऐप्लिकेशन है जो एक जीवित समाचार फ़ीड लेता निर्माण, और उन्हें प्रदर्शित करने के लिए था एंड्रॉयड पर एक परीक्षण पूरा कर लिया है में पैकेज के नाम के तहत कक्षाएं लगाने के लिए सर्वोत्तम तरीका क्या है। हालांकि, प्रशिक्षक बहुत महत्वपूर्ण था क्योंकि मैंने अपने सभी वर्गों को एक पैकेज के तहत रखा था।
मैं बस सोच रहा हूं कि पैकेजिंग कक्षाओं के लिए सबसे अच्छा अभ्यास क्या है। मेरी विशेष परीक्षण के लिए मैं इस पैकेज के नाम के तहत निम्नलिखित श्रेणियां होती हैं:
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
किसी भी सुझाव के लिए बहुत धन्यवाद,
मेरे लिए आपने ठीक किया। आपके पास केवल तेरह वर्ग हैं। उन्हें विभिन्न निर्देशिकाओं में जमा करने की आवश्यकता नहीं है। – greenapps