I have an activity with root item being a RelativeLayout. At one point I want to display another view of top of this, but don’t want to use another Activity since this would remove/reset the previous contents (I want to keep it as is). I just want to push the view on top, and in the added view there is a button to close it again.
Share
Define all your layouts in xml file. setting each and every layout..
Set Visibility of your view ‘gone’ when you want to hide that and set Visibility ‘Visible’ when you want to show that on top…