Coder Social home page Coder Social logo

goodfree / component Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xiaojinzi123/component

0.0 1.0 0.0 33.88 MB

一个强大完善的Android组件化方案,后续我会跟上一个使用了组件化的 App 真实例子.

Java 99.28% Kotlin 0.41% HTML 0.31%

component's Introduction

Component

直接拿到 onActivityResult 的酸爽

网页无缝调用的酸爽

属性自动注入的酸爽

这个组件化方案参考了 ARouter,WMRouter,ActivityRouter,CC,DDComponent等开源的组件化框架 结合了其中的一些优点并且扩展了几个很好用的特性:

  • 路由可手动取消
  • 路由自动取消,当发起Fragment或者Activity销毁
  • 零配置实现任何地方拿到目标界面返回的需要在onActivityResult拿的Intent
  • 用户自定义的拦截器的实现方法和Callback回调方法都是在主线程,并且以Callback机制,让你可以在拦截器中做任何事情
  • 把服务发现和Router跳转分开,Arouter,WMRouter等都是一起的,我个人认为分开更好
  • 采取了WMRouter等框架设计的页面拦截器(具体怎么回事看wiki)
  • Rx扩展库扩展完美结合了 RxJava2

更多功能等你来发现

RouterGoPlugin

一个帮助您识别路由和拦截器的库,减少您查找的时间,配合组件化使用

如何使用见wiki

wiki使用介绍

为了更好的能交流,这里新建了一个QQ群:870981195 或者扫描二维码来进群

License

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.

component's People

Contributors

xiaojinzi123 avatar keepactive avatar passin95 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.