Git Product home page Git Product logo

Comments (4)

AriesHoo avatar AriesHoo commented on June 24, 2024

from uiwidget.

Allen0828 avatar Allen0828 commented on June 24, 2024

就是 我需要在展示Dialog之后 自动关闭. 比如 延迟5秒后关闭.
但是 现在 使用UIWidget组件, 用户点击空白区域 Dialog会消失. 所以我加了一句 不响应空白区域的代码.
然后 不知道应该怎么关闭了
之前尝试使用了 以下代码 但是关不掉.
刚接触安卓 实在不好意思 😓

val dialog = UIProgressDialog.NormalBuilder(this)
// init代码
// 延迟2秒后自动关闭
Timer().schedule(2000) {
                runOnUiThread {
                    dialog. create().dismiss()
                }
   }

from uiwidget.

AriesHoo avatar AriesHoo commented on June 24, 2024

from uiwidget.

AriesHoo avatar AriesHoo commented on June 24, 2024

调用一次create()就会返回一个Dialog 对象。show()和dismiss()要针对同一个Dialog对象。不能show()是dialog A 然后dismiss() dialog B

from uiwidget.

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.