- 博客(9)
- 收藏
- 关注
原创 ActorInterface
ActorInterface 接口动态伪装工具,通过Interface2伪装成Interface1interface Interface1 { fun log(log: String)}interface Interface2 { fun log(log: Any)}val actorInterface = ActorInterface(object: Interface2 { override fun log(log: Any) { println(
2021-08-02 13:10:05
88
原创 ActorInterface
# ActorBeanActorBean:对象反射工具,不仅有get/set方法,还能把对象抽象到接口,方便集成。```data class Student(val name: String, var studentStatus: String? = null)```1. 直接获取属性值```val student = Student("张三")val actorStudent = ActorBean(student)val name = actorStude
2021-08-02 13:08:47
89
原创 actor-kotlin
actor-kotlinJava动态伪装工具,能够用伪装接口代理真实对象。(The Java dynamic camouflage tool can use the camouflage interface to proxy real objects.)纯Kotlin开发,使用简单但功能强大,可用于组件化开发或插件化项目开发。Android Demo: https://github.com/xuehuiniaoyu/actor-demoimplementation 'io.github.xuehui
2021-08-02 13:06:38
337
原创 ActorBean 对象的动态代理
ActorBeanActorBean:对象反射工具,不仅有get/set方法,还能把对象抽象到接口,方便集成。data class Student(val name: String, var studentStatus: String? = null)直接获取属性值val student = Student("张三")val actorStudent = ActorBean(student)val name = actorStudent("name")通过接口获取属性值Inter
2021-08-02 12:12:05
125
原创 Android多模块组件化开发,宿主无需实现组件接口且组件能够调用宿主方法并传值回来。
先介绍下框架 actor-kotlin(http://github.com/xuehuiniaoyu/actor-kotlin) 还有一个Android Demo(https://github.com/xuehuiniaoyu/actor-demo)actor-kotlin是kotlin开发的动态代理框架,能够实现两个不同对象实现函数模仿。举个栗子:宿主模块有一个类 class ApiKit { fun callApi(key: String, callback: (api...
2021-08-02 08:46:27
229
原创 Oxpecker让Android开发更快速
Oxpecker有一个特性:复制属性。1. 首先在define中定义一个组件head: { define: { text: { tag: {{text-view}} attrs: { width: fill height: 10 ...
2019-02-14 18:11:54
165
原创 用 Oxpecker 写的一个布局
布局代码:(assets/constant.hj){ head: { define: { ## 说明 splitLine: { tag: {{text-view}} attrs: { height: auto ...
2019-02-13 11:03:48
137
原创 Oxpecker 让Android Native插上“H5”的翅膀
Oxpecker: 牛椋鸟 Rhino: 犀牛 Pecking: 啃食牛椋鸟,犀牛身体的清洁工,啃食犀牛身上的寄生虫。同时还与犀牛搭建信息系统,当有危险来临是第一时间通知犀牛。下面我说一下Android系开发框架的发展1. Android开发的同学们都知道,Android的布局文件必须是编译前生成的,也就是说你没有办法像Html一样从网络拉取一份文件后生成组件给用...
2019-02-07 12:23:53
294
原创 Android MVC框架 - Baymax
Android MVC框架 - Baymax优点1:再也不用管AndroidManifest.xml这个烦人的家伙了。优点2:你一定要相信注解是多么的高效。优点3:Controller把业务跟UI分离;熟悉Spring的同学可能注意到了,这里的Controller就是从Spring模仿过来的。但用法跟Spring完全不一样。 网络层已经封装好,你只管专心处理你的业务
2017-08-25 17:13:38
359
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人