2

How I can draw this type of shape and change color in runtime I am referring this Making a triangle shape using xml definitions? but its not giving as expecting result enter image description here

Community
  • 1
  • 1
andro
  • 1,007
  • 1
  • 14
  • 32

1 Answers1

1

Use 9 patch image For that.

9 patch image

Or Here you can make that shape Direct,

Draw trapezoid shape

  • but all elements Colors are not fix and i have to set this for textview background .so in 1st i want to set 1,2,3 text in middle one i want title and in down arrow/tragnle only color so i dont think only image will do – andro Jan 23 '16 at 05:12
  • set it on Background and Use TextView for write the Text. –  Jan 23 '16 at 05:13
  • its possbile to have xml ? coz in this u cant change color in run time – andro Jan 23 '16 at 05:44
  • how can you give some sinppet – andro Jan 23 '16 at 05:58
  • crop your shape and save it. then go to direct trapezoid shape link and there select that image and download your shape. –  Jan 23 '16 at 07:28
  • then i need x amt of image coz color can be anything – andro Jan 23 '16 at 07:39