Android项目组件化示例代码,支持Fragment和View
Android项目组件化示例代码
Android组件化方案:http://blog.csdn.net/guiying712/article/details/55213884
Android组件化之终极方案:http://blog.csdn.net/guiying712/article/details/78057120
现在的 AndroidModulePattern 使用 阿里ARouter作为路由;
Android组件化方案已经支持 Fragment组件化,使用方法请下载Demo查看;
本项目已适配Android Studio 3.0.1版本(Google仓库会带来一定影响)
1、首先打开Android项目的 gradle.properties 文件,然后将 isModule 改为你需要的开发模式(true/false), 然后点击 "Sync Project" 按钮同步项目;
2、 在运行之前,请先按照图中选择一个能够运行的组件;
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.