I am looking to implement dragging of the entire screen to the left and right. Similar to how many apps do this for returning to a previous layout or moving to another. I am using Layout views. I would like this so i can swipe left or right and go back to the previous activity.
I have already looked at and implemented some GestureDetector features to detect the swipes, but i cant find any usefully resources that show how to drag entire Activities. I just need to get the visual feedback of a screen being dragged, then perform a check to see if it was dragged most of the way off screen so i can Finish() the activity. My ideal way to implement this would be as a base Activity class that all of my activities can inherit from. But it may not be as simple as that.
Could anyone direct me to some resources or demo code where i can see this?