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

problem when used within fragment on the backstack #82

Open
ddinger opened this issue May 21, 2014 · 1 comment
Open

problem when used within fragment on the backstack #82

ddinger opened this issue May 21, 2014 · 1 comment

Comments

@ddinger
Copy link

ddinger commented May 21, 2014

Im using the StaggeredGridView within a fragment. The initial rendering of the view works great. But if a register an OnItemClickListener and open some other fragment when the user selects an image, everytime I press the back button, I get the following exception

STACK_TRACE=java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
at com.origamilabs.library.views.StaggeredGridView.populate(StaggeredGridView.java:963)
at com.origamilabs.library.views.StaggeredGridView.onLayout(StaggeredGridView.java:917)
at android.view.View.layout(View.java:14785)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
at android.view.View.layout(View.java:14785)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14785)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14785)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:653

Any help appreciated,
Regards,
Dirk

@ddinger
Copy link
Author

ddinger commented May 21, 2014

It seems that supporting the column change at runtime is not properly supported ?

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

1 participant