我们可以为Textview textcolor添加一个drawable吗?

时间:2017-12-04 12:34:51

标签: android textview

这是drawable我试图将textview作为textcolor:

    <?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
    <gradient
        android:type="linear"
        android:centerX="46%"
        android:startColor="#FFc27a1c"
        android:centerColor="#FFfee17f"
        android:endColor="#FFc27a1c"
        android:angle="90"/>
</shape>

但是当我将其应用为文本颜色时,文本会变成蓝色。

0 个答案:

没有答案