0

I want to achieve something like this: enter image description here

Is it possible with shapedrawable? how do I place the "triangle" part beneath the rectangle?

BVtp
  • 2,308
  • 2
  • 29
  • 68

1 Answers1

0

Try with Vector Drawable. I guess it would be quite easy to achieve it with that. I can post the code here, but I think you should try yourself first and if you are not able to achieve it, paste your existing code :)

Yash
  • 5,225
  • 4
  • 32
  • 65
  • thanks. Can it then be resized as 9-patch according to phone's res? – BVtp Feb 19 '16 at 17:59
  • yes. That's good about vector drawables. Resizing is quite smooth. – Yash Feb 19 '16 at 18:01
  • ok thanks! Just so I know in general, are there any more ways to achieve different graphical layout shapes like this in android? – BVtp Feb 19 '16 at 18:08
  • Refer : http://developer.android.com/guide/topics/resources/drawable-resource.html and http://developer.android.com/reference/android/graphics/drawable/ShapeDrawable.html. – Yash Feb 19 '16 at 18:14