I\'m trying to display Text in RectShape which uses ShapeDrawable to display in Canvas.
I\'m able to display RectShape in this code, but looking for how to display t
The best option for me is to create a custom TextDrawable
that handles properly how to display a piece of text. Then in your CustomDrawableView
in your onDraw(Canvas c)
method you can call it to display the text and the oval.
Take a look at this answer I wrote recently as it contains how to do it properly.