In iOS there is a UIWindow which we can use to keep a view in front of everything (all view controllers). I am trying to find a similar way in android.
I have a Main activity with a sliding tabbed view pager with 3 fragments. The Main activity can show another by calling startActivity
on an Intent
of another activity (sorry if I am not using the right words, still very new to android).
I want a View to stay in front of everything. So even when mainactivity shows the other activity, that view should still stay on screen at the same position. How can I achieve this?
In iOS this is as simple as adding that view to the UIWindow. Is there something similar in android?
Similar to the Youtube app where the player stays in front even when you click on a channel name to go to another detail activity.