采用对style配置完成在文字周围环绕一层阴影效果.具体配置如下:
<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_centerInParent="true"
android:clickable="false" android:text="@string/book_title_desc"
style="@style/LauncherTitleTextAppearance" android:textColor="@color/text_book_title_color"
android:textSize="15sp"></TextView>
<style name="LauncherTitleTextAppearance">
<item name="android:shadowColor">#ffffffff</item>
<item name="android:shadowDx">0.0</item>
<item name="android:shadowDy">-1.0</item>
<item name="android:shadowRadius">0.1</item>
</style>