leobert

Results 20 comments of leobert

在集成的项目中,加一个样式: ``` false @android:color/transparent false true @null ``` 其内容仿照[库中的 Permission.Theme.Dialog.Transparent](https://github.com/yanzhenjie/AndPermission/blob/master/permission/src/main/res/values/style.xml) 即可, dialog还是会弹出,只不过是完全透明的。

项目中的ASM太老了,而且有些依赖没啥必要,可以自行升级重新发布下。 我直接升级到了9.0,适当改了点代码重新发布到了MavenCentral,我的环境附于最后仅供参考。 **除了声明插件时的classpath修改为**: ``` classpath("io.github.leobert-lan:traceman-plugin:1.0.6") ``` **使用上没有任何变化**。 *可能同步到Maven索引还需要一些时间*,可以通过: [Maven 检索](https://search.maven.org/search?q=g:io.github.leobert-lan%20And%20a:traceman-plugin) 追踪一下。 升级的依赖如下: ``` org.ow2.asm asm 9.0 compile org.ow2.asm asm-commons 9.0 compile com.android.tools.build gradle 3.2.1 compile org.jetbrains.kotlin kotlin-stdlib-jdk8 1.5.31 compile ```...

可参考 #53 ,我稍微维护了下发了mavencentral,项目里面的版本太老了。

the response of @ctlove0523 shows "How to use headers-define and retrofit-interceptor to change the time out setting in retrofit for a specified request". And in okhttp, AsyncTimeOut was used to...

Yes,it's dangerous and time wasting to use reflection, maybe okhttp has realized it in the lastest version. waiting the best solution💪💪💪

I notice that the interface `okhttp3.Call` has exposed a api function called `fun timeout(): Timeout`, maybe it's works to invoke `okio.Timeout.kt#timeout(timeout: Long, unit: TimeUnit): Timeout` to change the timeout mechanism....

umm,Jake Wharton have given a solution here, https://github.com/square/retrofit/issues/2982 #2982 。

umm...I forgot the Factory in GenerateValidator. maybe it's better to use dynamic generated instances of validator to validate simple pojo class's instance. it can minimize the size of the apk,...

刚才又反思了一下,上文体积的UnSafe助手类,还不适合直接放入litepal中使用,还不够全面完善,对于plain object类而言没多大问题,对于ArrayList等jdk中的类而言反而会出现问题。 感谢采纳。 过段时间不太忙的时候准备把项目里的litepal升级一波了。

首先表达对楼主开源和务实精神的支持,这里谈一谈我对于楼主livedata和RxJava观点的看法,livedata是Google提供的一个套件,体现了Google在处理响应式变更上的思路,相比于一般的响应式UI体系,Android需要考虑自身的生命周期问题,livedata将这些内容都做了封装,可以认为官方指导了一下在Android上应该如何去做响应式数据封装。而RxJava最开始的意图是优雅的处理异步问题,随着在创建响应式业务模型的问题上(简而言之是创建特定的数据流变化和相关事件订阅)体现出优势,被广大开发者接受并推广,Google15年推出databinding,随后才逐步推出JetPack中的各种套件,当时RxJava(RxAndroid)已经广泛使用了,所以Google认可他并提供相关的扩展是正常的。 当然,用任何的异步处理框架去实现响应式数据都是可以的,我记忆中Google推出jetPack时提到过,有很多用户抱怨Google没有像Apple在iOS的生态中那样,为开发者提供各种成熟的开箱可用的套件,大多数都是靠社区和广大开发者维护,所以Google痛定思痛决定对自家人好点,也弄点东西给大家用用。 而databinding呢,他的设计理念是为了让写响应式UI设计更简单一点,并不利于View的复用。