I would like to make an inner shadow on a textview, But I can’t find any example of that on the web.
Is there any way to do that on Android?
I know these attributes:
android:shadowColor
android:shadowRadius
android:shadowDx
android:shadowDy
Am I missing something useful?
If you want the
TextViewto have inner shadow like this:you have to use 9-patch drawable like this one:
Set the 9-patch drawable as the TextView’s background.
The attributes you mention:
android:shadowColor, android:shadowRadius, android:shadowDx, android:shadowDyserve other purpose, they create text shadow: