先随便贴两张效果图
图 1
图 2
可以看到文字变炫了,图2是比较正常的剧情配图,图1是夸张了些是为了更好的让人看出来字体附加的效果是如何实现的,这两图都是对文字增加了外阴影,只不过图1的纵坐标偏移过大了,想实现这个效果只需要一个类即可,代码如下:
public class ShineTextView extends TextView {
private ArrayList<Shadow> outerShadows;
public ShineTextView(Context context) {
super(context);
init(null);
}
public ShineTextView(Context context, AttributeSet attrs) {
super(context, attrs);
init(attrs);
}
public ShineTextView(Context context, AttributeSet att