Create new APIs for developer to customize starting window - windowSplashScreenBackground: specify the background color - windowSplashScreenAnimatedIcon: replace center icon on starting window, and it can be animatable. - windowSplashScreenAnimationDuration: the animation duration if the replace icon is animatable, it cannot exceed max_starting_window_intro_icon_anim_duration. Support ADV to replace the icon on starting window. Ref doc: go/improved_app_launch_animations Bug: 73289295 Test: build/flash Test: check splash screen starting window. Test: atest StartingSurfaceDrawerTests SplashscreenTests Test: atest ShellTaskOrganizerTests Change-Id: Id3de3e9b57d769f096baf43713c1e3c327ecfdc8
55 lines
2.4 KiB
XML
55 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2020 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<resources>
|
|
<!-- Animation duration for resizing of PIP when entering/exiting. -->
|
|
<integer name="config_pipResizeAnimationDuration">425</integer>
|
|
|
|
<!-- Allow dragging the PIP to a location to close it -->
|
|
<bool name="config_pipEnableDismissDragToEdge">true</bool>
|
|
|
|
<!-- Allow PIP to resize to a slightly bigger state upon touch/showing the menu -->
|
|
<bool name="config_pipEnableResizeForMenu">true</bool>
|
|
|
|
<!-- Allow PIP to enable round corner, see also R.dimen.pip_corner_radius -->
|
|
<bool name="config_pipEnableRoundCorner">false</bool>
|
|
|
|
<!-- Animation duration when using long press on recents to dock -->
|
|
<integer name="long_press_dock_anim_duration">250</integer>
|
|
|
|
<!-- Animation duration for translating of one handed when trigger / dismiss. -->
|
|
<integer name="config_one_handed_translate_animation_duration">300</integer>
|
|
|
|
<!-- One handed mode default offset % of display size -->
|
|
<fraction name="config_one_handed_offset">40%</fraction>
|
|
|
|
<!-- Allow one handed to enable round corner -->
|
|
<bool name="config_one_handed_enable_round_corner">true</bool>
|
|
|
|
<!-- Bounds [left top right bottom] on screen for picture-in-picture (PIP) windows,
|
|
when the PIP menu is shown in center. -->
|
|
<string translatable="false" name="pip_menu_bounds">"596 280 1324 690"</string>
|
|
|
|
<!-- one handed background panel default color RGB -->
|
|
<item name="config_one_handed_background_rgb" format="float" type="dimen">0.5</item>
|
|
|
|
<!-- one handed background panel default alpha -->
|
|
<item name="config_one_handed_background_alpha" format="float" type="dimen">0.5</item>
|
|
|
|
<!-- maximum animation duration for the icon when entering the starting window -->
|
|
<integer name="max_starting_window_intro_icon_anim_duration">1000</integer>
|
|
</resources>
|