大纲文本Android Studio
我一直在寻找如何勾勒出一个文本视图,到目前为止我刚刚发现,但是从2010年。我认为现在有一种标准的方法来概括课文,但到目前为止我还没有做到。我的代码中包含以下内容:大纲文本Android Studio,android,textview,outline,Android,Textview,Outline,我一直在寻找如何勾勒出一个文本视图,到目前为止我刚刚发现,但是从2010年。我认为现在有一种标准的方法来概括课文,但到目前为止我还没有做到。我的代码中包含以下内容: <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#3e3e3e" android:shadowColor="#ffffff" /&g
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#3e3e3e"
android:shadowColor="#ffffff"
/>
但我得到以下渲染错误:
不支持Paint.setShadowLayer
我很想知道是否有其他方法来概述文本或如何处理此错误!谢谢大家! 尝试设置阴影半径等。仅设置颜色无法显示阴影 例如:
<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"
/>
您是否尝试运行带有此错误的项目?结果如何?预览版不支持所有内容。我写了一个答案,请检查。