tags:

views:

16

answers:

0

Hi,

I'm defining a shape drawable, I'd like to include an externally defined gradient:

<shape
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:shape="rectangle">

  <include
    android:id="@gradients/my_gradient" />

</shape>

Can we create a gradients.xml file to define gradients? If so, how do we import an instance into a shape definition?

Thanks