Comments (3)
你好,你说的是没有任何Toast显示么?我们内部进行了优化,像这种代码连续调用(毫秒级),前两个信息是会被覆盖的,只会显示最后一条,不会像系统那样,连续弹出三个Toast,体验非常差。一般连续弹出Toast都是响应用户动作时,用户连续触发造成,这种往往提示信息不发生改变,覆盖掉以前的,这种体验是良好的。
所以,你是哪一种情况?如果最后只弹出了“3”是正常的,如果什么都没有弹出,麻烦请把你设备的品牌及及其android系统版本发给我,我进一步查验。谢谢🙏
from smart-show.
你好,你说的是没有任何Toast显示么?我们内部进行了优化,像这种代码连续调用(毫秒级),前两个信息是会被覆盖的,只会显示最后一条,不会像系统那样,连续弹出三个Toast,体验非常差。一般连续弹出Toast都是响应用户动作时,用户连续触发造成,这种往往提示信息不发生改变,覆盖掉以前的,这种体验是良好的。
所以,你是哪一种情况?如果最后只弹出了“3”是正常的,如果什么都没有弹出,麻烦请把你设备的品牌及及其android系统版本发给我,我进一步查验。谢谢🙏
华为p10 pro EMUI版本 9.0.0 系统版本:android 9.0
from smart-show.
你好,非常抱歉,最近公司业务繁忙,今天才有时间来解决该问题。
经过我的排查发现,华为9.0以上系统和9.0以下系统有所不同,9.0系统本身已经对Toast进行了优化,例如调用原生Toast:
Toast.makeText(this,"1",Toast.LENGTH_LONG).show();
Toast.makeText(this,"2",Toast.LENGTH_LONG).show();
Toast.makeText(this,"3",Toast.LENGTH_LONG).show();
在华为9.0以上系统,只会显示最后一个Toast,而不像华为9.0以下系统一样弹出三个Toast。
针对这种情况,SmartShow内部作出了适当调整,以适配这种情况。
现在该问题已修复,请使用最新版本2.7.8,star一下是对我最大的支持,谢谢!
from smart-show.
Related Issues (20)
- Could not download toast.aar (com.github.zhiqiang-series.smart-show:toast:3.1.9): No cached version available for offline mode HOT 1
- You need to use a Theme.AppCompat theme (or descendant) with this activity. HOT 1
- java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable.mutate()' on a null object reference #23 HOT 2
- SmartSnackBar show()方法 java无法调用,只有三参数结构show方法 HOT 1
- lateinit property application has not been initialized HOT 6
- java.lang.NullPointerException HOT 1
- 4.x之后 Java调用起来很不方便啊 HOT 2
- dialog: ensure 添加设置图标的功能
- Manifest merger failed : Attribute provider#androidx.startup.InitializationProvider@authorities HOT 6
- 透明度设置 HOT 3
- showInCenter showLongInCenter 这后面那个方法时长也是2秒啊 HOT 1
- backgroundResource(R.drawable.toast_bg) HOT 10
- 求助:smart-dialog:4.0.7 Caused by: java.lang.NoSuchMethodError: No static method getVincentActivityLifecycleCallbacks() HOT 4
- SmartDialog 选项较多时,下方的取消和确定按钮看不到了 HOT 2
- smart snackbar 4.1.0在不同android版本下,提示文字大小不一致 HOT 3
- SmartToast如何让他在activity关闭也会显示? HOT 4
- SmartToast 中emotion toast部分设置图标和图标大小等无效 HOT 1
- ToastScheduler中的 canReuseToast需要判断一下 toastConfig是否是同一类的,否则有可能出现强转异常 HOT 1
- Toast支持自定义时长吗? HOT 1
- 最新版本LoadingDialog 不能在显示的时候修改 message文字 HOT 1
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 smart-show.