0

I'm drawing rectangle and filling it with solid color. i would like also to add contour to the label background. I want to create something line in outlook when you have a meeting that you didn't respond on. is it possible?

(I wanted to add a picture, but i don't have enough reputation points)

Thanks, Gidi

Sharas
  • 1,985
  • 3
  • 20
  • 43

1 Answers1

2

Do you mean something like that?

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
    <solid android:color="#c1001f"/>
    <stroke android:width="6dp" android:color="#000000" />
</shape>
knox
  • 27
  • 3
  • Hi, thanks for your help. I can't figure out how to draw this shape on a canvas (currently, my code is drawing Rectangle and I want to replace it with this shape) – Sharas Aug 11 '13 at 14:31
  • fount the answer here: http://stackoverflow.com/questions/12821416/draw-rectangle-with-xml-shape-settings-in-android – Sharas Aug 14 '13 at 05:09