全文搜索
标题搜索
全部时间
1小时内
1天内
1周内
1个月内
默认排序
按时间排序
为您找到相关结果13个

[Alibaba-ARouter]浅谈简单好用的Android页面路由框架_Android_脚本...

为了解决以上问题,我们需要一款能够解耦、简单、功能多、定制性较强、支持拦截逻辑的路由组件:我们选择了AlibabaARouter。 一、功能介绍 支持直接解析URL进行跳转、参数按类型解析到Bundle,支持Java基本类型(*) 支持应用内的标准页面跳转,API接近Android原生接口 支持多模块工程中使用,允许分别打包,包结构符合Android包规...
www.jb51.net/article/1279...htm 2017-11-10

Android ARouter路由框架解析_Android_脚本之家

compile 'com.alibaba:arouter-api:x.x.x' annotationProcessor 'com.alibaba:arouter-compiler:x.x.x' ... } // 替换成最新版本, 需要注意的是api // 要与compiler匹配使用,均使用最新版可以保证兼容 compile 'com.alibaba:arouter-api:x.x.x' annotationProcessor 'com.alibaba:arouter-compiler:x.x.x' ...
www.jb51.net/article/1375...htm 2018-4-2

5步教你快速写一个android Router路由框架_Android_脚本之家

网上大片的路由框架实在太多了,实现的方式都大同小异,通过注解实现路由表;但是在多module开发的时候怎么合并路由表,不同的框架有着自己的解决方案。 ARouter:通过类查找进行合并路由表。 ActivityRouter:通过注解进行路由表合并。 路由框架的意义 Android系统已经给我们提供了api来做页面跳转,比如startActivity,为什么还需要...
www.jb51.net/article/1279...htm 2024-6-2

Android开发之项目模块化实践教程_Android_脚本之家

[5] ARouter:https://github.com/alibaba/ARouter [6] EventBus:https://github.com/greenrobot/EventBus
www.jb51.net/article/1233...htm 2024-6-2

用Kotlin打造一个Router的示例代码_Android_脚本之家

本篇文章主要介绍了用Kotlin打造一个Router的示例代码,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧 0. 最近接收了从前的项目,之前的代码比较凌乱,准备重构。整个项目其实功能比较明显,而且产品还想给他打造成比较成熟牛逼的app,那么组件化开发势在必行。众所周知,模块开发,路由先行...
www.jb51.net/article/1393...htm 2024-5-17

Android组件化工具ARouter使用方法详细分析_Android_脚本之家

implementation 'com.alibaba:arouter-api:1.5.2' kapt 'com.alibaba:arouter-compiler:1.5.2'引入后需要注意的一点是:要在gradle.properties文件中加入下面这个,不然会编译不过去,这也是我遇到的一个小坑。android.enableJetifier=true在Application中初始化
www.jb51.net/article/2663...htm 2024-6-2

Android 组件化神器之Arouter依赖配置使用_Android_脚本之家

kapt 'com.alibaba:arouter-compiler:1.2.1' } } 注意:Kotlin 环境和 Java 环境配置不匹配会报错 ARouter::There is no route match the path 1 W/ARouter::: ARouter::There is no route match the path [/xxx/xxx], in group [xxx][ ]" 2. 在Application初始化 1 2 3 4 5 6 7 8 9 10 11...
www.jb51.net/program/290698a...htm 2024-6-2

浅谈android组件化之ARouter简单使用_Android_脚本之家

ARouter阿里巴巴开源出来的一款android路由框架,github地址为 : https://github.com/alibaba/ARouter 至于ARouter的诸多好处我就不介绍了,这里主要讲解在项目组件化下,ARouter的一些简单使用 先贴上工程目录: 工程一共分为4个模块,基础组件app、基础服务(包涵路由服务)basecommonlibrary模块、业务模块libraryone、业务...
www.jb51.net/article/1237...htm 2024-6-2

阿里路由框架ARouter 源码解析之Compiler_Android_脚本之家

【https://github.com/alibaba/ARouter】接下来会分为若干篇blog来分析一下ARouter的源码!看了ARouter的源码就会发现,它提供了两个SDK,一个是API,一个Compiler。Compiler SDK 是用于编译器生成相关类文件的。 API SDK 是用在运行期间路由跳转等作用的。
www.jb51.net/article/1429...htm 2024-6-2

Android路由框架ARouter的使用示例_Android_脚本之家

kapt 'com.alibaba:arouter-compiler:1.5.1' } 题外话: implementation 和 api 关键字,在Android studio3.0版本中,曾经的 compile 关键字被弃用,而 api 则是 compile 的替代品, api 与 compile 没有区别。但最新官方推荐使用 implementation 来代替 compile 关键字,据说 implementation 会使Android studio的编译速度...
www.jb51.net/article/2151...htm 2021-6-18