I wan't a imageview which is semi-transparent in other parts and completely transparent in the middle .. see this image..

i have managed to do it but it is not the best of ways.. can I only have a rect inside yellow lines transparent ...?
EDIT: Is it possible to change the alpha of a certain rect of a view..?