Leibniz

Results 8 comments of Leibniz

看下我的答案,可能解决了你的问题

https://github.com/saiwu-bigkoo/Android-SVProgressHUD/issues/20

It's not simple way to set size.You can use `textView.setHtml(HTML_TEXT, new HtmlHttpImageGetter(textView,null,true));` ,if you just set the width of image to match_parent(at the same time, the scale is correct).

我也复现了你说的情况:关闭串口,仍然还在阻塞read

我上面的方法都没不适用我这个应用,我现在的做法是,用一个全局的viewmodel 一直做阻塞读,读到就写到livedata中,然后要用的时候就在具体的UI界面observe全局的livedata。

图片太大就不行,图片压缩一下才行。

完全没有必要加,因为本来的属性就完全够实现出一个红色角标了,比如你想在最右边加一个badge,可以给右边文字设置一个背景sRightTextBackground,就是带圆角的红色背景,然后文字设置为白色,就完全够了。

可以改写成 func willDealloc() ->Bool{ return false } 试了下就没有内存泄漏了