【发布时间】:2017-03-11 13:35:38
【问题描述】:
我想创建自定义背景,我想在 drawable 文件夹中创建它。
对于这个背景,我写了下面的代码:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1dp"
android:color="@color/gradient_center" />
<corners android:radius="5dp" />
</shape>
但在这段代码中,我只是为stroke 设置sold 颜色,我想为stroke 颜色设置渐变 颜色。
怎么办?
【问题讨论】:
标签: android android-drawable android-shape