I did not like the Paint method used in other answers. The following code works for me with a radius calculated based on the font size and applying it directly to the TextView.
if (Build.VERSION.SDK_INT >= 11) { yourTextView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); } float radius = yourTextView.getTextSize() / 3; BlurMaskFilter filter = new BlurMaskFilter(radius, BlurMaskFilter.Blur.NORMAL); yourTextView.getPaint().setMaskFilter(filter);
source share