android - android 中的发光文本轮廓。

标签 android text contour glow

如何在 android 中添加发光的文本轮廓?

这是一个例子:

enter image description here

最佳答案

使用 x 、 y = 0 和 Radius 值将阴影添加到您的 textview 中,只要您喜欢发光。

<TextView android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Glowing" 
android:textSize="40sp" 
android:textStyle="bold" 
android:shadowColor="#0000ff" 
android:textColor="#C02938" 
android:shadowDx="0.0" 
android:shadowDy="0.0" 
android:shadowRadius="10"/>

关于android - android 中的发光文本轮廓。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9868410/

相关文章:

android - 在 Android Studio 中使用 ActivityInstrumentationTestCase2 横向测试 Android 应用程序

android - 我可以从智能 watch 直接读取数据到我的 android 应用程序吗?

jquery - 当出现某些文本时隐藏 <h2> 的内容 - JQuery

javascript - JavaScript 中的实时文本颜色变化

java - OpenCV 找到轮廓 : make it robust

java - 应用程序强制关闭。短信广播接收器

Java(生成不重复的数字)

java - 创建一个简单的文本菜单: String out of bonds expection ( range 0 ) Java

python - 对于具有自定义级别的 matplotlib contourf 图,颜色图被忽略

python - Matplotlib 分离 3D 数据的 2D 轮廓投影图