一、设置文字阴影:
android:shadowColor="@color/purple_200"阴影颜色 android:shadowRadius="3.0"阴影模糊度(必要设置) android:shadowDx="20"阴影X轴偏移 android:shadowDy="10"阴影Y轴偏移
二、跑马灯:
android:singleLine="true"使文字在一行内显示,不然它会自己换行 android:ellipsize="marquee"一行内显示不全的文本省略方式:marquee跑马灯方式 android:focusable="true"要想让它跑马灯,必须设置焦点 android:focusableInTouchMode="true"这是设置另一种情况下的焦点,一般两个都写 android:marqueeRepeatLimit="marquee_forever"跑马灯循环次数(无限)