<TextView
android:id="@+id/tv_verName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:shadowDx="1"
android:shadowDy="1"
android:shadowColor="@color/red"
android:shadowRadius="2"
android:textSize="16sp"
android:text="版本名称" />
以下四行使文字阴影起作用
android:shadowDx="1"
android:shadowDy="1"
android:shadowColor="@color/red"
android:shadowRadius="2"