I want to style a button in my android app, and I would like to have different colors for each border-side/”stroke-side”.. is this possible, or would I need to create a 9patch for this..there aint anything equal to border-left and such as in css?
Thanks in advance!
I tried it before and I couldn’t achieve it without using the NinePatchDrawable. I even tried using Shape Drawable but you can’t apply different colors for different stroke sides.
You can follow these steps to generate a 9-patch drawable.