Put various configurations for PiP into one Activity, access by navigate
to `App > Activity > Picture in Picture`. Current supports
- Enter PiP with on-screen button
- Enter PiP by swiping up to home or tap on home button
- Toggle the auto enter PiP flag on and off
- Toggle the source rect hint on and off
- Toggle the seamless resize flag on and off
- Change the position of current and next source rect hint
- Tablet layout on foldables
The upcoming content PiP will also be hosted here.
Added also support passing the intent extra, full command
```
adb shell am start \
--ez auto_pip [true|false] \
--ez source_rect_hint [true|false] \
--ez seamless_resize [true|false] \
--es current_position [start|end] \
com.example.android.apis/.app.PictureInPicture
```
Bug: 175727044
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/gdcklbUsT7SmbUhNcVSXfd
Test: manual, see Video
Change-Id: I60233f2d6e428d11d4ab1b566e36c38fd4c4f937
The API Demos application includes a variety of small applications that illustrate the use of various Android APIs. It includes samples of: - Notifications - Alarms - Progress Dialogs - Intents - Menus - Search - Persistent application state - Background Services - App Widgets - Voice Recognition - And many many more... Api demos is designed to use the compatibility library "android-support-v4.jar". It is available through the SDK Updater in the "Android Compatibility package". Once downloaded, copy the jar file into the ApiDemos project libs/ folder. (If using Eclipse, add it manually to the project build path).