android.support.v7.widget.RecyclerView.AdapterDataObserver的实例源码

项目:FMTech    文件:PlayRecyclerView.java   
private void setupEmptyViewObserver(RecyclerView.Adapter paramAdapter)
{
  if (paramAdapter != null)
  {
    if (this.mObserver != null)
    {
      paramAdapter.unregisterAdapterDataObserver(this.mObserver);
      this.mObserver = null;
    }
    this.mObserver = new RecyclerView.AdapterDataObserver()
    {
      public final void onChanged()
      {
        PlayRecyclerView.this.updateEmptyStatus();
      }
    };
    paramAdapter.registerAdapterDataObserver(this.mObserver);
  }
}
项目:CutoutViewIndicator    文件:RecyclerStateProxy.java   
@Override
public void associateWith(final DataSetObserver observer) {
    adObserver = new AdapterDataObserver() {
        @Override
        public void onChanged() {
            observer.onChanged();
        }
    };
    recyclerView.getAdapter().registerAdapterDataObserver(adObserver);
}
项目:FMTech    文件:PlayHeaderListRecyclerViewListener.java   
public PlayHeaderListRecyclerViewListener(PlayHeaderListLayout paramPlayHeaderListLayout)
{
  this.mLayout = paramPlayHeaderListLayout;
  this.mObserver = new RecyclerView.AdapterDataObserver()
  {
    public final void onChanged()
    {
      PlayHeaderListRecyclerViewListener.access$000$536d8310(PlayHeaderListRecyclerViewListener.this);
      PlayHeaderListRecyclerViewListener.this.mLayout.mPendingListSync = 2;
    }

    public final void onItemRangeChanged$255f295()
    {
      onChanged();
    }

    public final void onItemRangeInserted(int paramAnonymousInt1,int paramAnonymousInt2)
    {
      onChanged();
    }

    public final void onItemRangeRemoved(int paramAnonymousInt1,int paramAnonymousInt2)
    {
      onChanged();
    }
  };
}
项目:RxBinding    文件:RecyclerAdapterDataChangeObservable.java   
Listener(final T recyclerAdapter,final Observer<? super T> observer) {
  this.recyclerAdapter = recyclerAdapter;
  this.dataObserver = new AdapterDataObserver() {
    @Override public void onChanged() {
      if (!isDisposed()) {
        observer.onNext(recyclerAdapter);
      }
    }
  };
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


com.google.gson.internal.bind.ArrayTypeAdapter的实例源码
com.google.gson.JsonSyntaxException的实例源码
com.google.gson.JsonDeserializer的实例源码
com.google.gson.internal.ConstructorConstructor的实例源码
com.google.gson.JsonPrimitive的实例源码
com.google.gson.LongSerializationPolicy的实例源码
com.google.gson.internal.GsonInternalAccess的实例源码
com.google.gson.JsonIOException的实例源码
com.google.gson.internal.StringMap的实例源码
com.google.gson.JsonObject的实例源码
com.google.gson.internal.bind.TimeTypeAdapter的实例源码
com.google.gson.FieldAttributes的实例源码
com.google.gson.internal.bind.TreeTypeAdapter的实例源码
com.google.gson.internal.LinkedHashTreeMap的实例源码
com.google.gson.TypeAdapterFactory的实例源码
com.google.gson.JsonSerializer的实例源码
com.google.gson.FieldNamingPolicy的实例源码
com.google.gson.JsonElement的实例源码
com.google.gson.internal.JsonReaderInternalAccess的实例源码
com.google.gson.TypeAdapter的实例源码