Giter Site home page Giter Site logo

Comments (1)

prakash1530 avatar prakash1530 commented on May 22, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.