展会信息港展会大全

android:shadow使用在文字阴影效果
来源:互联网   发布日期:2015-10-02 16:04:41   浏览:2516次  

导读:采用对style配置完成在文字周围环绕一层阴影效果 具体配置如下:TextView android:layout_height=wrap_contentandroid:layout_width=wrap_content android:layout_centerInParent=trueandroid:click ...

采用对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>

赞助本站

人工智能实验室

相关热词: shadow 阴影效果 android

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港