diff options
author | Casey Burkhardt <caseyburkhardt@google.com> | 2015-02-12 14:07:55 -0800 |
---|---|---|
committer | Casey Burkhardt <caseyburkhardt@google.com> | 2015-02-12 14:13:10 -0800 |
commit | d29a1e47d44ac072502342c3b9f55e9870e914ba (patch) | |
tree | ee25f10ff1a94665c4e7ea3b45365eac6521270f /core | |
parent | a673af77d95f4a3d46e5d71188256b27e06cc442 (diff) | |
download | frameworks_base-d29a1e47d44ac072502342c3b9f55e9870e914ba.zip frameworks_base-d29a1e47d44ac072502342c3b9f55e9870e914ba.tar.gz frameworks_base-d29a1e47d44ac072502342c3b9f55e9870e914ba.tar.bz2 |
Support circular magnification frame on circular devices
The magnification viewport expects its boundary to be a rectangular region,
and always draws it as such. This change causes the indicator to draw as a
circle on devices with circular displays. This also refactors the width of
the indicator's frame to use a proper dimension resource and updates the
width to 4dip.
Bug:18242438
Change-Id: I1d86647b6d1ef84f5dd506f4141223ec050a79b5
Diffstat (limited to 'core')
-rw-r--r-- | core/res/res/values/dimens.xml | 3 | ||||
-rwxr-xr-x | core/res/res/values/symbols.xml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 02fa128..30ea7c1 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -304,6 +304,9 @@ <!-- Touch slop for the global toggle accessibility gesture --> <dimen name="accessibility_touch_slop">80dip</dimen> + <!-- Width of the outline stroke used by the accessibility screen magnification indicator --> + <dimen name="accessibility_magnification_indicator_width">4dip</dimen> + <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) --> <dimen name="keyguard_security_width">320dp</dimen> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 77c981a..bd69fb0 100755 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -412,6 +412,7 @@ <java-symbol type="dimen" name="notification_badge_size" /> <java-symbol type="dimen" name="immersive_mode_cling_width" /> <java-symbol type="dimen" name="circular_display_mask_offset" /> + <java-symbol type="dimen" name="accessibility_magnification_indicator_width" /> <java-symbol type="string" name="add_account_button_label" /> <java-symbol type="string" name="addToDictionary" /> |