summaryrefslogtreecommitdiff
path: root/tools/aidl/generate_java.cpp
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-06-20 16:40:37 -0700
committerJeff Brown <jeffbrown@google.com>2011-06-21 18:58:20 -0700
commit10b6290c5f15ae512a2f6b5bf8d95bd2527c7235 (patch)
tree2d1de2d5fdd2bd4df7457b984d8975629c6b71cc /tools/aidl/generate_java.cpp
parent738e7e431c71777100726f6c870e47c354db1337 (diff)
Only handle onHoverEvent in actionable views.
Modified onHoverEvent so that a view only has its state changed to hovered when the view is clickable. The intent is to prevent labels from taking hover focus away from their containing view group despite not being actionable in any way. The child will still receive a hover event but, if it does not handle the event (returns false), the hover event will bubble up to its parent and ancestors allowing them a chance to handle the event instead. The new onHoverEvent semantics are better because now they closely mirror those of onTouchEvent. This makes it straightforward to implement views that respond to hover by changing their visual appearance (such as by making buttons glow when hovered). Added onInterceptHoverEvent to enable ViewGroups to explicitly intercept hover events within their bounds. Exposed the new hover event API for real. Change-Id: I63195c8f5c74b859f6047487f9a0f703e8f40ffe
Diffstat (limited to 'tools/aidl/generate_java.cpp')
0 files changed, 0 insertions, 0 deletions