Analyze split screen
This article based on AOSP 9.0. Split screen is my best favorite multi-window feature when I use Android phone. This article will analyze its logic show how this awesome feature is implemented. SystemUI The split screen’s entry is in system ui’s recents. In RecentsView, if the user select one app to start in split screen mode with ui choice, RecentsViewl.onBusEvent will try to start the task of this app to split screen mode. RecentsView.onBusEvent final ActivityOptions options = ActivityOptionsCompat.makeSplitScreenOptions( dockState.createMode == SPLIT_SCREEN_CREATE_MODE_TOP_OR_LEFT); if (ActivityManagerWrapper.getInstance().startActivityFromRecents(event.task.key.id, options)) { // Other code }...