No resource identifier found for attribute,RxJava之zip操作符

本文介绍了一种常见的Android开发错误——自定义控件找不到资源的问题及其解决方案。该错误通常出现在布局文件中引用了不存在的资源时。文章详细解释了一个具体的例子,并给出了如何检查并修复此类问题的方法。

目录

 No resource identifier found for attribute 'container_interpolator' in package 'com.imobi

RxJava之zip操作符

 


 No resource identifier found for attribute 'container_interpolator' in package 'com.imobi

这个错误的原因是一些由于 你的layout文件中有自定义的控件,由于你的有些自定义属性用到 一些资源文件找不到的原因,这时候你就需要仔细的查看你得文件有什么没写的 资源文件。

我的原因是由于下拉刷新控件用到动画引起的:

android:id="@+id/es_blackname"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="12dp"
android:layout_marginRight="12dp"
expandable_selector:animation_duration="200"
expandable_selector:collapse_interpolator="@android:anim/decelerate_interpolator"
expandable_selector:container_interpolator="@android:anim/accelerate_decelerate_interpolator"
expandable_selector:expand_interpolator="@android:anim/accelerate_interpolator"

主要是这些

expandable_selector:animation_duration="200"
expandable_selector:collapse_interpolator="@android:anim/decelerate_interpolator"
expandable_selector:container_interpolator="@android:anim/accelerate_decelerate_interpolator"
expandable_selector:expand_interpolator="@android:anim/accelerate_interpolator"

RxJava之zip操作符

 

 

通过分解动作我们可以看出:
组合的过程是分别从 两根水管里各取出一个事件 来进行组合, 并且一个事件只能被使用一次, 组合的顺序是严格按照事件发送的顺利 来进行的, 也就是说不会出现圆形1 事件和三角形B 事件进行合并, 也不可能出现圆形2 和三角形A 进行合并的情况.
最终下游收到的事件数量 是和上游中发送事件最少的那一根水管的事件数量 相同. 这个也很好理解, 因为是从每一根水管 里取一个事件来进行合并, 最少的 那个肯定就最先取完 , 这个时候其他的水管尽管还有事件 , 但是已经没有足够的事件来组合了, 因此下游就不会收到剩余的事件了.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ZhangJiQun&MXP

等到80岁回首依旧年轻

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值