Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

出现异常 #1

Open
125hello opened this issue May 3, 2017 · 6 comments
Open

出现异常 #1

125hello opened this issue May 3, 2017 · 6 comments

Comments

@125hello
Copy link

125hello commented May 3, 2017

代码设置setDensity(100)之后 会出现非法状态异常Caused by: java.lang.IllegalArgumentException

@DingMouRen
Copy link
Owner

我测试了一下setDensity(100),没有问题,不知道您是在什么场景下出现的这种错误?

@niezhiyang
Copy link

niezhiyang commented Jun 14, 2017

能飘落多种图片吗?

@DingMouRen
Copy link
Owner

@niezhiyang 并不能╮(╯▽╰)╭

@Gentleman-jun
Copy link

楼主,是有一个这样的bug。我刚刚测到的,如果我在使用FallingView的Visible属性设置为Gone,然后在第一次设置为VISIBLE的时候调用setDensity()这个方法就会抛出异常:n must be positive。

@DingMouRen
Copy link
Owner

@ @Gentleman-jun 多谢 问题找到了,已经解决

@AnserBaby
Copy link

为什么我会报
NullPointerException: Attempt to invoke virtual method 'void com.dingmouren.fallingview.FallingView.setImageResource(int)' on a null object reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants