本文整理汇总了Java中android.view.View.OnAttachStateChangeListener类的典型用法代码示例。如果您正苦于以下问题:Java OnAttachStateChangeListener类的具体用法?Java OnAttachStateChangeListener怎么用?Java OnAttachStateChangeListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OnAttachStateChangeListener类属于android.view.View包,在下文中一共展示了OnAttachStateChangeListener类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addOnAttachStateChangeListener
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
@Implementation
public void addOnAttachStateChangeListener(OnAttachStateChangeListener listener) {
attachStateListeners.add(listener);
}
示例2: removeOnAttachStateChangeListener
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
@Implementation
public void removeOnAttachStateChangeListener(OnAttachStateChangeListener listener) {
attachStateListeners.remove(listener);
}
示例3: onAttachedToWindow
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
@Implementation
public void onAttachedToWindow() {
for (OnAttachStateChangeListener listener : attachStateListeners) {
listener.onViewAttachedToWindow(view);
}
}
示例4: onDetachedFromWindow
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
@Implementation
public void onDetachedFromWindow() {
for (OnAttachStateChangeListener listener : attachStateListeners) {
listener.onViewDetachedFromWindow(view);
}
}
示例5: removeOnAttachStateChangeListener
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
/**
* @see View#removeOnAttachStateChangeListener(OnAttachStateChangeListener)
*/
public W removeOnAttachStateChangeListener(OnAttachStateChangeListener listener) {
mView.removeOnAttachStateChangeListener(listener);
return (W)this;
}
示例6: addOnAttachStateChangeListener
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
/**
* @see View#addOnAttachStateChangeListener(OnAttachStateChangeListener)
*/
public W addOnAttachStateChangeListener(OnAttachStateChangeListener listener) {
mView.addOnAttachStateChangeListener(listener);
return (W)this;
}
示例7: getAttachStateListeners
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
private static List<OnAttachStateChangeListener> getAttachStateListeners(View view) {
Object listenerInfo = ReflectionHelpers.callInstanceMethod(view, "getListenerInfo");
return ReflectionHelpers.getField(listenerInfo, "mOnAttachStateChangeListeners");
}
示例8: onAttachStateChange
import android.view.View.OnAttachStateChangeListener; //导入依赖的package包/类
public Disposable onAttachStateChange(final OnAttachStateChangeListener onNext) {
return onAttachStateChange(onNext, Fu.ON_ERROR_MISSING);
}