Comments (1)
Hi varunrramani This may be too late answer for you but may help others who have the same issue and have not resolved. i have also faced same issue, but solution is easy. open the file RcyclingPagerAdapter.java and go to method "instantiateItem(ViewGroup container, int position) " and add below line of code before "container.addView(view);"
if(view.getParent()!=null)
((ViewGroup)view.getParent()).removeView(view);
This will resolve the issue, Since when we try to see the last page from current page before all the pages have been cycled container already has the same view so it crashes saying remove the view or view already exist. so in the above code first if statement checks the view is present in parent or not if vie is there it removes the view ("((ViewGroup)view.getParent()).removeView(view);") from the parent and then adds it again. Hope this helps.
from android-demo.
Related Issues (8)
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 android-demo.