Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
大纲文本Android Studio_Android_Textview_Outline - Fatal编程技术网

大纲文本Android Studio

大纲文本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

我一直在寻找如何勾勒出一个文本视图,到目前为止我刚刚发现,但是从2010年。我认为现在有一种标准的方法来概括课文,但到目前为止我还没有做到。我的代码中包含以下内容:

<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"
/>


您是否尝试运行带有此错误的项目?结果如何?预览版不支持所有内容。我写了一个答案,请检查。