In my application, I want to create a floating view that will be a show at a place (chosen by me, but can be everywhere on the screen) that has nothing to do with the current ongoing activity. The activity below will still be touchable (and has focus), and this view is only touched every time it is explicitly touched.
Moreover, the floating view shall be kept when the user moves from the activity to another activity as long as he is in the application.
See the image below.
My aim for this is, when a certain thing happens, I want to this floating view to show for couple of seconds, where the user can press on it, or press the X to dismiss it (meaning it will have a custom layout)..
What is the best way to accomplish this ?
I will be targeting 4.0.x* and above.
- x > 1