Is there any way to create a XML drawable with drawable and stroke?
Usually we use shape with stroke like this code:
<item android:state_pressed="true">
<shape>
<gradient
android:angle="270.0"
android:endColor="@color/rounded_container_bg"
android:startColor="@color/rounded_container_bg" />
<corners android:radius="11.0dip" />
</shape>
</item>
<item>
<shape>
<stroke
android:width="1.0px"
android:color="@color/rounded_container_border" />
I think this is not possible to use drawable in this code But is there any other methods that I can use it to create an image surrounded by stroke?
I need this method to create buttons and I want to use a background image (PNG) with stroke.
Thanks