Git Product home page Git Product logo

Comments (2)

 avatar commented on May 24, 2024

@soyoungboy 这个我用三个手机及模拟器测试过多次,就是没触发The specified child already has a parent。你看下错误日志,是哪一行,相应的修改代码removeView()以下试试

from androidpicker.

msdx avatar msdx commented on May 24, 2024

这个问题我在使用OptionPicker的时候也遇见过,略查了一下,原因是我在外部inflate一个view,然后在设置bottom的时候把它返回去。而AndroidPicker是在每次显示的时候都会在对应的方法里执行要显示的所有content view的创建,所以就导致在下一次显示时,这个view被添加到新的view里。

另外,个人意见:建议picker的view可以缓存,不必每次显示时都重新创建以及重新设置选择项等。

from androidpicker.

Related Issues (20)

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.