diff options
| author | 2023-04-26 11:05:26 -0700 | |
|---|---|---|
| committer | 2023-05-09 08:28:09 -0700 | |
| commit | fa242f4a935363cc490b3d0619788ad372654942 (patch) | |
| tree | 816f77fd3476e95e4afbd331cfccdb3838dc5025 /libs/androidfw/FileStream.cpp | |
| parent | ac4c6aa72fbc755846a5ccbdc6ef7c5f8601f56b (diff) | |
Introduce handwriting hover icon and update its hide/show logic
Updated the hover icon for PointerIcon.TYPE_HANDWRITING. And also
updated the hide/show logic of the handwriting hover icon.
By default handwriting hover icon is displayed for areas where
handwriting is available.
Now the hover icon will hide after handwriting is triggered on the
active editor until one of the following events happens:
a) stylus clicks something.
b) stylus hovers on another editor that supports handwriting.
c) the current focused editor lost focus.
The hotspot of the pointer icon is designed to be
x: 34% of the width; 8.25 dp (rouneded to the closest quarter-dp).
y: 100% of height, which is set to 23.75dp because
hotSpotY must be less than bitmap height.
Bug: 274696514
Test: atest HandwritingInitiatorTest
Change-Id: I9270076fc3f5eae78386fb5c2e15f9872ddf0c40
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions