我创建一个径向渐变,如:径向渐变为不同的DPI
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient
android:startColor="#7faacaFF"
android:endColor="#cfe1edFF"
android:gradientRadius="326"
android:type="radial"/>
</shape>
但在使用像SP和倾角值gradientRadius场返回一个错误。 有没有一种方法可以指定mdpi的半径和缩放比例,并在余下的屏幕密度中自动缩放或者创建多个可绘制文件?
非常感谢,这应该被接受为回应 – Arnaud 2014-08-25 09:42:35