Search code examples
androidbackgroundandroid-viewlayer-list

Background with directional arrow


I have a quick question on how to achieve a desired view of a background on a view. What I want is a directional arrow pointing in a direction as the overlay on a background of say a textview.

For example (Beautiful MS Paint skills)

enter image description here

I have already tried using a layer-list which isn't going to work in this case due to screen size changes or fluctuating content heights. Is there any other possible way to do this other than using a 9patch. I've been dreading to even research 9 patches due to my complete illiteracy when it comes to graphic design.


Solution

  • Something like this attached file would help? Created in paint, used then draw9patch to draw the stretchebale lines.

    You might have seen the docs for 9-patch.

    Created with paint, edited in draw9patch - 2 mins