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

HeaderListViewOnScrollListener.updateScrollBar #5

Closed
androiddeveloper30 opened this issue Nov 6, 2013 · 4 comments
Closed

HeaderListViewOnScrollListener.updateScrollBar #5

androiddeveloper30 opened this issue Nov 6, 2013 · 4 comments
Assignees

Comments

@androiddeveloper30
Copy link

I have imported your project and created a new project using the library given. It works fine till the values are static i have the setContentView() set as HeaderListview id. But when i change the from listview to HeaderListview in xml file it gives me the following error.
" java.lang.ArithmeticException: / by zero at com.applidium.headerlistview.HeaderListView$HeaderListViewOnScrollListener.updateScrollBar(HeaderListView.java:215) at com.applidium.headerlistview.HeaderListView$HeaderListViewOnScrollListener.onScroll(HeaderListView.java:115) "

Please help me in solving this error.
I need to setContentView() a different layout as i have other elements also on the same xml file.

@genliu
Copy link

genliu commented Nov 12, 2013

Same issue

@ghost ghost assigned tokou Nov 12, 2013
@tokou
Copy link
Contributor

tokou commented Nov 12, 2013

Hi,
Thanks for your feedback.
Unfortunately, I was not able to reproduce your issue, could you please attach some sample code ?

@genliu
Copy link

genliu commented Nov 13, 2013

I was using it similar to the sample project. Instead of putting it in an Activity, I put it in a Fragment and return the ListView in onCreateView.

@tokou
Copy link
Contributor

tokou commented Nov 15, 2013

Hi,
We tried to fix the issue based on the stack trace you gave us. We think it should be ok now, but since we were not able to reproduce it, we're not really sure. Can you tell us if your problem is fixed by this patch?
If not, can you provide us a small sample project reproducing the bug?

@tokou tokou closed this as completed Dec 10, 2013
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

3 participants