在文字周圍環繞一層陰影效果[android:shadow] 使用

採用對style配置完成在文字周圍環繞一層陰影效果.   具體配置以下:  android

<TextView android:layout_height="wrap_content" spa

android:layout_width="wrap_content" android:layout_centerInParent="true" string

android:clickable="false" android:text="@string/book_title_desc" it

style="@style/LauncherTitleTextAppearance" android:textColor="@color/text_book_title_color" cli

android:textSize="15sp"></TextView>   配置

 

 

 

<style name="LauncherTitleTextAppearance"> layout

<item name="android:shadowColor">#ffffffff</item> di

<item name="android:shadowDx">0.0</item> co

<item name="android:shadowDy">-1.0</item> background

<item name="android:shadowRadius">0.1</item>

</style>

相關文章
相關標籤/搜索