My goal is to set a modal view in my Android application. I would like to open one view whose background would be transparent so the user can see the view behind.
- I’ve heard about using transparent activity but this might freeze the activity behind, ain’t it ?
- I would like some kind of reusable stuff since this view will call in more than one activity.
Thanks
You can make an Activities background transparent using this style:
Declared in the manifest like so:
I then use this as the layout for my dialogue:
You can either inflate other layouts and add it to
@+id/dialogor use fragments (depending on how brave you are).Hope that helped!