# åºç¨æªå¾
# AndroidModulePattern
Android项ç®ç»ä»¶å示ä¾ä»£ç
**Androidç»ä»¶åæ¹æ¡**ï¼http://blog.csdn.net/guiying712/article/details/55213884
**Androidç»ä»¶åä¹ç»ææ¹æ¡**ï¼http://blog.csdn.net/guiying712/article/details/78057120
1. ç°å¨ç AndroidModulePattern ä½¿ç¨ é¿éARouterä½ä¸ºè·¯ç±ï¼
2. Androidç»ä»¶åæ¹æ¡å·²ç»æ¯æ **Fragmentç»ä»¶å**ï¼ä½¿ç¨æ¹æ³è¯·ä¸è½½Demoæ¥çï¼
3. ç®åAndroidç»ä»¶åæ¹æ¡è¿æ²¡æåå®ï¼åç»ä¼**ç»§ç»æ´æ°**ï¼å®åç»ä»¶åæ¹æ¡ã
## éæå¼å模å¼åç»ä»¶å¼å模å¼è½¬æ¢
**1ãé¦å
æå¼Android项ç®ç gradle.properties æä»¶ï¼ç¶åå° isModule æ¹ä¸ºä½ éè¦çå¼å模å¼ï¼
ç¶åç¹å» "Sync Project" æé®åæ¥é¡¹ç®ï¼**
**2ã å¨è¿è¡ä¹åï¼è¯·å
æç
§å¾ä¸éæ©ä¸ä¸ªè½å¤è¿è¡çç»ä»¶ï¼**
## ç»ä»¶åè½ä»ç»
### appç»ä»¶åè½ï¼ç©ºå£³å·¥ç¨ï¼ï¼
1. é
ç½®æ´ä¸ªé¡¹ç®çGradleèæ¬ï¼ä¾å¦ æ··æ·ãç¾åçï¼
2. appç»ä»¶ä¸å¯ä»¥åå§åå
¨å±çåºï¼ä¾å¦Lib.init(this);
3. æ·»å multiDex åè½
4. ä¸å¡ç»ä»¶ç®¡çï¼ç»è£
ï¼ï¼
### mainç»ä»¶åè½ï¼ä¸å¡ç»ä»¶ï¼ï¼
1. 声æåºç¨çlauncherActivity----->android.intent.category.LAUNCHERï¼
2. æ·»å SplashActivity;
3. æ·»å LoginActivityï¼
4. æ·»å MainActivityï¼
### girls/newsç»ä»¶åè½ï¼ä¸å¡ç»ä»¶ï¼ï¼
1. è¿ä¸¤ä¸ªç»ä»¶é½æ¯ä¸å¡ç»ä»¶ï¼æ ¹æ®äº§åçä¸å¡é»è¾ç¬ç«æä¸ä¸ªç»ä»¶ï¼
### commonç»ä»¶åè½ï¼åè½ç»ä»¶ï¼ï¼
1. commonç»ä»¶æ¯åºç¡åºï¼æ·»å ä¸äºå
¬ç¨çç±»ï¼
2. ä¾å¦ï¼ç½ç»è¯·æ±ãå¾çå è½½ãå·¥å
·ç±»ãbaseç±»ççï¼
3. 声æAPPéè¦çuses-permissionï¼
4. å®ä¹å
¨å±éç¨ç主é¢ï¼Themeï¼ï¼
## License
Copyright 2017 guiying712, AndroidModulePattern Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.