我正在处理相当复杂的xml drawable,想知道是否有任何工具或插件能够让我预览我的drawable?
我正在寻找类似于布局中可用的“图形布局”选项卡的东西。
例如,如果我有这样的内容:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:left="0dp" android:right="0dp">
<shape android:shape="rectangle">
<gradient android:angle="-90" android:startColor="#2B2B2B"
android:endColor="#000000" />
</shape>
</item>
<item android:top="1sp" android:bottom="26sp" >
<shape android:shape="rectangle">
<solid android:color="#10ffffff"/>
</shape>
</item>
</layer-list>
我怎样能够预览形状和渐变呢? 也许只是做梦,但是有没有一些图形工具可以构建可绘制对象?