Skip to content

Android TextView Shadow

How to add a shadow in a text view? How to improve the text readability on widgets?

There’s four properties on TextView related to shadows.

First a a normal TextView XML declaration.

Now the same TextView with the four shadow properties, the color, the x,y offset and the blur radius.

Published inenglish

One Comment

  1. Vikram Vikram

    The graphics preview in the layout editor may not be accurate:
    * Paint.setShadowLayer is not supported.

    I am getting d above error wen i executed d code of textview shadow
    Kindly provide a solution
    Thanks in advance

Leave a Reply

Your email address will not be published. Required fields are marked *