I want to implement an Android-Application like gallery or photos. I have several small photos. When I click on a photo, I open another activity which displays the foto over the whole screen. I want to be able to drag the activity to the bottom and this drag-event to be treated like the back-button.
How is this possible?
You could try to use the
onTouchEventandGestureDetectorto detect the drag, then use theonBackPress():Slide down in the UI of activity, it will run the
onBackPress().