Closed xiangyao0906 closed 5 years ago
你只用了 ToastUtils 吗,还是还用了什么
我在商米平板上也遇到了,导致展示异常。内存资源丢失。应该是与修改了density有关,使用默认Toast实现就正常了。建议增加开关,可以绕过与显示Toast无关的操作。
你只用了 ToastUtils 吗,还是还用了什么
沒有,我是整体引入的。只是在用toast的时候 发现了一些奇怪的问题,报错就像 @candyguy242 说的那样,报错是资源文件丢失。还有就是用了今日头条的适配方案,确实是修改了density。
我没有用那些适配方案,直接调用的ToastUitls的方法,设置了居中等等,也出现了兼容性问题。其他设备上没有遇到。
你们过两天用我最新的适配方案吧,我会把过去适配方案删掉
升级到 1.22.0 试试
商米平板新版已验证通过~
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical">