Comments (4)
from uiwidget.
就是 我需要在展示Dialog之后 自动关闭. 比如 延迟5秒后关闭.
但是 现在 使用UIWidget组件, 用户点击空白区域 Dialog会消失. 所以我加了一句 不响应空白区域的代码.
然后 不知道应该怎么关闭了
之前尝试使用了 以下代码 但是关不掉.
刚接触安卓 实在不好意思 😓
val dialog = UIProgressDialog.NormalBuilder(this)
// init代码
// 延迟2秒后自动关闭
Timer().schedule(2000) {
runOnUiThread {
dialog. create().dismiss()
}
}
from uiwidget.
from uiwidget.
调用一次create()就会返回一个Dialog 对象。show()和dismiss()要针对同一个Dialog对象。不能show()是dialog A 然后dismiss() dialog B
from uiwidget.
Related Issues (20)
- 混淆 HOT 1
- TitleBarView 横竖屏切换刘海屏适配问题 HOT 6
- 蒲公英扫描下载打开崩了 HOT 2
- 提一个小小的建议,关于UIActionSheetDialog的。
- CommonTabLayout的选中状态再点击onTabReselect 事件有误 HOT 1
- titlebarView能否考虑加入一个红点提示的功能 HOT 1
- 希望能支持Gradient背景渐变
- RadiusRelativeLayout滑动冲突 HOT 5
- RadiusTextView 在adapter里面动态设置背景色会出现复用问题 HOT 1
- RadiusTextView 支持ripple点击效果? HOT 4
- TitleBarView添加一个自定义视图后,没有办法删除 HOT 4
- SlidingTabLayout 点选 Tab 时并不会平滑滚动? HOT 2
- 选中字体大小变大后指示器不居中问题
- 关于字体选中放大缩小 向右滑动代码修正
- CommonTabLayout Indicator显示错误
- SlidingTabLayout 手势滑动很快下划线会出现问题
- Android10上底部有间距,不填充 HOT 2
- titlebarview被遮挡 HOT 7
- loading内存泄漏
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 uiwidget.