在TextView中非常模糊的文字设置 [英] Set text in textview very blurry
本文介绍了在TextView中非常模糊的文字设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在找到完全模糊的一个TextView文本的方法。阅读,完全不可读(像素化)。我现在使用的方法是使用阴影。但是,这似乎非常低效的。任何人谁拥有更好的解决方案?
I'm looking into methods of completely blurring a text in a textview. Read, completely unreadable (pixelate). The methods i'm using now are using shadows. But this seems very inefficient. Anyone who has a better solution?
推荐答案
您应该尝试使用的画布而不是的TextView
然后再与模糊的文本。
有使用大量的方法 BlurMaskFilter ,然后你可以使用这个像
You should try to use canvas instead of TextView
and draw a text with blur.
There is a lot of method using BlurMaskFilter and you can use this like that :
paint.setMaskFilter(new BlurMaskFilter(float radius, BlurMaskFilter.Blur style));
这篇关于在TextView中非常模糊的文字设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文