I'm writing an app that I can drag, scale, rotate text (StaticLayout) and sticker (Bitmap) like Instagram Story. I use a custom view to draw objects in onDraw(), detect gesture using MotionEvent in onTouchEvent().
But I can't find the bounds which fit these objects, because the bound I use is Rect, and it doesn't fit text/bitmap when I rotate.
Does anyone know how to get the bound that fit these object, or how does Instagram draw text and sticker in Story? OpenGL?