0

im my drawable circle.xml is it declared that

<solid
      android:color="#FFFF99"/>

is it possible that in my drawable the background is an image and not color? If possible, how?:)

2
  • really? how? i am having a hard time figuring out. Sep 2, 2013 at 13:15
  • means are you just want to android:drawable="@drawable/imagehere"..... like this?
    – Piyush
    Sep 2, 2013 at 13:16

1 Answer 1

0

You can wrap your drawable in a layered drawable, which has a bitmap drawable, with your circle drawable on top: LayerList.

However, if you want to mask the image with the circle, that is a little more complicated: use something like this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.