bea1519534
- gives ~10fps gain when side scrolling in all apps, customize mode, and the transition animations between workspace/all apps/customize - requires framework to expose a flag isDirty() on View (will be submitted in separate commit) Change-Id: Ief4cf3f2ffe545f237bc7111fb62af13e8695766
72 lines
3.9 KiB
XML
72 lines
3.9 KiB
XML
<resources>
|
|
<!-- NOTE: Many of the all apps values here are also used for the customization drawer -->
|
|
|
|
<!-- Duration in milliseconds of the fade-in/out of the icons as they are being dragged
|
|
from the AllApps or Customization trays -->
|
|
<integer name="icon_allAppsCustomizeFadeInTime">150</integer>
|
|
<integer name="icon_allAppsCustomizeFadeOutTime">200</integer>
|
|
<integer name="icon_allAppsCustomizeFadeAlpha">102</integer>
|
|
|
|
<!-- Duration in milliseconds of the all apps / configuration zoom-in animation. -->
|
|
<!-- NB: This should be less than the workspaceShrinkTime as they happen together. -->
|
|
<integer name="config_allAppsZoomInTime">700</integer>
|
|
|
|
<!-- Duration in milliseconds of the transition between tabs in the all apps/customize
|
|
tray -->
|
|
<integer name="config_tabTransitionTime">100</integer>
|
|
|
|
<!-- Duration in milliseconds of the all apps zoom-out animation -->
|
|
<!-- NB: This should be less than the workspaceUnshrinkTime as they happen together. -->
|
|
<integer name="config_allAppsZoomOutTime">350</integer>
|
|
|
|
<!-- Scaling factor used in the all apps zooming animations -->
|
|
<integer name="config_allAppsZoomScaleFactor">7</integer>
|
|
|
|
<!-- Duration in milliseconds of the animations between all apps, customize, & home.
|
|
NOTE: If these are changed, the toolbar animation times below should also be. -->
|
|
<integer name="config_allAppsCameraPanTime">700</integer>
|
|
<integer name="config_workspaceShrinkTime">700</integer>
|
|
<integer name="config_workspaceUnshrinkTime">350</integer>
|
|
<integer name="config_allAppsFadeOutTime">150</integer>
|
|
|
|
<!-- Duration in milliseconds toolbar fade in and fade out animations.
|
|
NOTE: Fade in and fade out time should together be less the transition
|
|
animations between all apps, customize, & the workspace. -->
|
|
<integer name="config_toolbarButtonFadeInTime">100</integer>
|
|
<integer name="config_toolbarButtonFadeOutTime">100</integer>
|
|
|
|
<!-- When dragging items on the workspace, how much bigger (in pixels) the dragged view
|
|
should be, as compared to the original view. If 0, it will not be scaled at all.
|
|
Should be an even number, for pixel alignment. -->
|
|
<integer name="config_dragViewExtraPixels">0</integer>
|
|
|
|
<!-- When dragging items on the workspace, the number of pixels by which the position of
|
|
the drag view should be offset from the position of the original view. -->
|
|
<integer name="config_dragViewOffsetX">0</integer>
|
|
<integer name="config_dragViewOffsetY">-12</integer>
|
|
|
|
<!-- When items are dropped on the mini screens in customize mode, we have a bounce animation
|
|
of the bright green hover outline, and then fade out the outline at the end. These are
|
|
the values used in that animation -->
|
|
<integer name="config_screenOnDropScalePercent">120</integer>
|
|
<integer name="config_screenOnDropScaleUpDuration">200</integer>
|
|
<integer name="config_screenOnDropScaleDownDuration">200</integer>
|
|
<integer name="config_screenOnDropAlphaFadeDelay">350</integer>
|
|
<integer name="config_screenOnDropAlphaFadeDuration">50</integer>
|
|
|
|
<!-- Workspace screens are cached to bitmaps only when they're smaller than a certain size
|
|
(maxScaleForUsingWorkspaceScreenBitmapCache), since the bitmap cache itself is smaller
|
|
than the view itself (workspaceScreenBitmapCacheScale) -->
|
|
<integer name="config_workspaceScreenBitmapCacheScale">20</integer>
|
|
<integer name="config_maxScaleForUsingWorkspaceScreenBitmapCache">50</integer>
|
|
|
|
<!-- The slope, in percent, of the drag movement needed to drag an item out of the customization
|
|
drawer (y / x * 100%) -->
|
|
<integer name="config_customizationDrawerDragSlopeThreshold">150</integer>
|
|
<integer name="config_allAppsDrawerDragSlopeThreshold">150</integer>
|
|
|
|
<style name="config_orientation">
|
|
<item name="@android:screenOrientation">unspecified</item>
|
|
</style>
|
|
</resources>
|