I have a custom view which is a RelativeLayout
which contains a ListView
(both are set to match parent - width and height).
On top of the list I have a View
as seen in the picture below:
I want that the only part that will be drawn is the rect of my View
(marked with gray), while all the other portion of the view will be transparent.
is there a way I can do this?
I already tried to extend RelativeLayout
and override its onDraw()
method, but I didn't manage to draw only the specific region (marked in gray).