summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-02-18 15:02:18 -0800
committerAdam Powell <adamp@google.com>2011-02-18 15:03:20 -0800
commit4afd62b18c52a55371ab923d54f93615ad68fd7a (patch)
tree6034918377b4128e00d6e4c5752bbd87fd2cc911 /api
parent10d63fada8a0e67095422d60b381906ebe5b65ee (diff)
downloadframeworks_base-4afd62b18c52a55371ab923d54f93615ad68fd7a.zip
frameworks_base-4afd62b18c52a55371ab923d54f93615ad68fd7a.tar.gz
frameworks_base-4afd62b18c52a55371ab923d54f93615ad68fd7a.tar.bz2
Add an API to listen for window attach/detach events on a View.
Fix bug 3312949 - inconsistent state in MenuPopupHelper Change-Id: Ie802ada3f8de4cf71c92fcc7c6abce9ba85e7b75
Diffstat (limited to 'api')
-rw-r--r--api/current.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml
index 4e45471..6279d8d 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -220070,6 +220070,19 @@
<parameter name="focusableMode" type="int">
</parameter>
</method>
+<method name="addOnAttachStateChangeListener"
+ return="void"
+ abstract="false"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<parameter name="listener" type="android.view.View.OnAttachStateChangeListener">
+</parameter>
+</method>
<method name="addOnLayoutChangeListener"
return="void"
abstract="false"
@@ -223073,6 +223086,19 @@
<parameter name="action" type="java.lang.Runnable">
</parameter>
</method>
+<method name="removeOnAttachStateChangeListener"
+ return="void"
+ abstract="false"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<parameter name="listener" type="android.view.View.OnAttachStateChangeListener">
+</parameter>
+</method>
<method name="removeOnLayoutChangeListener"
return="void"
abstract="false"
@@ -225394,6 +225420,40 @@
>
</field>
</class>
+<interface name="View.OnAttachStateChangeListener"
+ abstract="true"
+ static="true"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<method name="onViewAttachedToWindow"
+ return="void"
+ abstract="true"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<parameter name="v" type="android.view.View">
+</parameter>
+</method>
+<method name="onViewDetachedFromWindow"
+ return="void"
+ abstract="true"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+<parameter name="v" type="android.view.View">
+</parameter>
+</method>
+</interface>
<interface name="View.OnClickListener"
abstract="true"
static="true"