diff options
author | Andrei Stingaceanu <stg@google.com> | 2017-09-22 15:32:13 +0100 |
---|---|---|
committer | Andrei Stingaceanu <stg@google.com> | 2017-10-03 16:45:54 +0100 |
commit | d2eadfa4b1d6f1ff05f7f4ee3538f7b41d73f70b (patch) | |
tree | bff6400a5d44fa78829ae244835c5103ad92632b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | efed687188dbe4266ac385998bb022663c0e482e (diff) |
[Magnifier - 1] Initial implementation and wiring
* implementation of a magnifier which can be attached to any view
* important APIs:
** show(float centerXOnScreen, float centerYOnScreen, float scale)
** dismiss()
* smart offset => shows below if there is no space above
* controlled by boolean flag (easy to turn off)
* attached the magnifier to Editor's handles
* vertically snaps to the middle of the line containing the
selection
* horizontally snaps to the offset of the character where
the selection starts/ends
Bug: 66657373
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: manual test that shows the magnifier working
Change-Id: I1d4616b8bb1210d869ac47dca137ea9636355250
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions