Where should close button be?
The upper right corner of a modal window is the common place for the close button X in desktop experience.
How to close apps in Android Studio?
Close one app: Swipe up from the bottom, hold, then let go. Swipe up on the app. Close all apps: Swipe up from the bottom, hold, then let go. Swipe from left to right.