Giter Club home page Giter Club logo

Comments (4)

XiaoFei9704 avatar XiaoFei9704 commented on July 4, 2024

这是由于调用dialog.dismiss()的时候,当前dialog还正在显示,所以不能开启第二个dialog。
需要使用setOnDismissListener(),这样动画结束后展示下一个dialog才可以。
解决方法是:
.setOnItemClickListener((dialog1, item, view, position) -> { dialog1.dismiss(); //这里创建第二个dialog }); .setOnDismissListener(dialog -> { //这里调用dialog.show(); })

from dialogplus.

Dboy233 avatar Dboy233 commented on July 4, 2024

我当时是做法是,把源码下载下来修改了一处调用位置就可以了。

from dialogplus.

Dboy233 avatar Dboy233 commented on July 4, 2024

image
时间已经过去很久了,我记得就是改了这个地方。增加了一行代码。

from dialogplus.

Dboy233 avatar Dboy233 commented on July 4, 2024

现在已经全部使用DialogFragment了。我当时确实是第一个dialog动画必须结束后才能展示第二个dialog,要等待第一个dialog关闭,业务逻辑上会复杂很多,所以就修改了一下源码。

from dialogplus.

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.