Comments (5)
this has just fixed at version 1.1.1 👍
from multisnaprecyclerview.
I think It's available to fragment.
What type of layout manager are you using ??
from multisnaprecyclerview.
I also had a similar issue. The stacktrace is following.
I solved the problem with calling setLayoutManager() at Fragment#onCreateView() NOT at Fragment#onViewCreated().
java.lang.IllegalArgumentException: other than LinearLayoutManger is not supported
at com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView.onAttachedToWindow(MultiSnapRecyclerView.java:41)
at android.view.View.dispatchAttachedToWindow(View.java:14520)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2836)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
at android.view.ViewGroup.addViewInner(ViewGroup.java:4348)
at android.view.ViewGroup.addView(ViewGroup.java:4145)
at android.view.ViewGroup.addView(ViewGroup.java:4086)
at android.view.ViewGroup.addView(ViewGroup.java:4059)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1425)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)
at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
from multisnaprecyclerview.
thank you for reporting, I understand.
I will try to fix it.
from multisnaprecyclerview.
I have the same problem, the first time it's ok but when I replaced the fragment again app crashed.
from multisnaprecyclerview.
Related Issues (20)
- it is not available to set item which i want to set in center HOT 3
- The rolling speed is too slow, can you adjust the rolling speed? HOT 1
- Backward scrolling sometimes snaps twice HOT 9
- A warning appear. HOT 2
- Set snapGravity programmatically HOT 1
- Snap Programatically HOT 3
- How to center the visible items afte snapping/ HOT 1
- Any idea how to handle screen orientation? HOT 1
- snap last item with ItemDecoration HOT 8
- Not able to show last item with gravity start HOT 1
- Alternatives to msrv_speed_ms_per_inch HOT 3
- Hi, thank you for the request. HOT 1
- New Feature as requirement HOT 5
- The application may be doing too much work on its main thread. HOT 1
- Richiejack32 HOT 1
- >for me
- Version 1.1.0 released, but code here shows it's 1.0.3 HOT 3
- Is it possible to snap every X views? HOT 2
- java.lang.IllegalArgumentException: other than LinearLayoutManger is not supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multisnaprecyclerview.