Add Shadow to textView

Опубликовано: 18 Июнь 2026
на канале: Sketch Logic
353
9

Hello Everyone.
In this video I have shown you how to add Shadow to textView


The code used in the video

tv.setShadowLayer(1.5f,1.0f,1.0f,Color.parseColor("#EF6C00"));

You can modify the color , shadow direction by altering the values


tv.setShadowLayer(1.5f,5.0f,5.0f,Color.parseColor("#EF6C00"));