summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorVladislav Kaznacheev <kaznacheev@google.com>2017-03-07 11:03:35 -0800
committerVladislav Kaznacheev <kaznacheev@google.com>2017-03-14 10:00:21 -0700
commitb40e61b77c7109c0b4e50167184e9a64cb20018e (patch)
treeb2ec6b70738acf1a33aadd8bb179e9004cb60cbf /tools/aapt2/java/JavaClassGenerator.cpp
parent07084924be4ce0dc67f150d77b886f21fcb01aa7 (diff)
Anchor a cascading submenu to its parent menu item
The current implementation of cascading menus is anchoring a submenu to the top-level anchor view using a carefully computed offset. This offset is only correct for the case when the submenu is being shown normally, but not when it is flipped due to insufficient space below. More over, when the window containing the anchor is scrolled, the pre-computed might become completely irrelevant, as parent menus might change their above/below state. This CL allows a PopupWindow to be anchored to a view in another popup window (previously it was only possible to anchor to a view in the main app window). Cascading submenu is now tracking its parent item position correctly. Bug: 35768002 Test: android.cts.widget.PopupWindowTest.testAnchorInPopup Change-Id: Id163d739de05729a9fa7e5fedebc9ec0037ed80e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions