我一直在研究如何勾勒出一个TextView,到目前为止我刚刚找到了this question,但它是2010年的。我认为现在有一种标准的方法来概括文本,但到目前为止,我还没有做到这一点。我的代码中有以下内容:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#3e3e3e"
android:shadowColor="#ffffff"
/>但是,我得到以下呈现错误:
不支持Paint.setShadowLayer
我想知道是否有另一种方法来勾勒文本或如何处理这个错误!谢谢!
发布于 2015-12-03 15:19:41
尝试设置阴影半径等。只有设置颜色不能使阴影出现。
示例:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#3e3e3e"
android:shadowColor="#ffffff"
android:shadowDx="2"
android:shadowDy="2"
android:shadowRadius="1"
/>https://stackoverflow.com/questions/34069109
复制相似问题