FallingView
FallingView copied to clipboard
出现异常
代码设置setDensity(100)之后 会出现非法状态异常Caused by: java.lang.IllegalArgumentException
我测试了一下setDensity(100),没有问题,不知道您是在什么场景下出现的这种错误?
能飘落多种图片吗?
@niezhiyang 并不能╮(╯▽╰)╭
楼主,是有一个这样的bug。我刚刚测到的,如果我在使用FallingView的Visible属性设置为Gone,然后在第一次设置为VISIBLE的时候调用setDensity()这个方法就会抛出异常:n must be positive。
@ @Gentleman-jun 多谢 问题找到了,已经解决
为什么我会报 NullPointerException: Attempt to invoke virtual method 'void com.dingmouren.fallingview.FallingView.setImageResource(int)' on a null object reference