Home
last modified time | relevance | path

Searched refs:listenerResourceId (Results 1 – 1 of 1) sorted by relevance

/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DListenerUtil.java55 public static <T> T trackListener(View view, T listener, int listenerResourceId) { in trackListener() argument
57 final T oldValue = (T) view.getTag(listenerResourceId); in trackListener()
58 view.setTag(listenerResourceId, listener); in trackListener()
62 WeakHashMap<View, WeakReference<?>> listeners = sListeners.get(listenerResourceId); in trackListener()
65 sListeners.put(listenerResourceId, listeners); in trackListener()
91 public static <T> T getListener(View view, int listenerResourceId) { in getListener() argument
93 return (T) view.getTag(listenerResourceId); in getListener()
96 WeakHashMap<View, WeakReference<?>> listeners = sListeners.get(listenerResourceId); in getListener()