// Path: recyclerview/src/main/java/me/henrytao/recyclerview/SimpleRecyclerViewAdapter.java
// public abstract class SimpleRecyclerViewAdapter extends RecyclerViewAdapter {
// 
//   public abstract RecyclerView.ViewHolder onCreateFooterViewHolder(LayoutInflater inflater, ViewGroup parent);
// 
//   public abstract RecyclerView.ViewHolder onCreateHeaderViewHolder(LayoutInflater inflater, ViewGroup parent);
// 
//   public SimpleRecyclerViewAdapter(RecyclerView.Adapter baseAdapter) {
//     super(1, 1, baseAdapter);
//   }
// 
//   @Override
//   public void onBindFooterViewHolder(RecyclerView.ViewHolder holder, int index) {
// 
//   }
// 
//   @Override
//   public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder, int index) {
// 
//   }
// 
//   @Override
//   public RecyclerView.ViewHolder onCreateFooterViewHolder(LayoutInflater inflater, ViewGroup parent, int index) {
//     return onCreateFooterViewHolder(inflater, parent);
//   }
// 
//   @Override
//   public RecyclerView.ViewHolder onCreateHeaderViewHolder(LayoutInflater inflater, ViewGroup parent, int index) {
//     return onCreateHeaderViewHolder(inflater, parent);
//   }
// }
// 
// Path: recyclerview/src/main/java/me/henrytao/recyclerview/holder/FooterHolder.java
// public class FooterHolder extends BaseHolder {
// 
//   public FooterHolder(View itemView) {
//     super(itemView);
//   }
// 
//   public FooterHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId) {
//     super(inflater, parent, layoutId);
//   }
// 
//   public FooterHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId, boolean isFillParent) {
//     super(inflater, parent, layoutId, isFillParent);
//   }
// }
// 
// Path: recyclerview/src/main/java/me/henrytao/recyclerview/holder/HeaderHolder.java
// public class HeaderHolder extends BaseHolder {
// 
//   public HeaderHolder(View itemView) {
//     super(itemView);
//   }
// 
//   public HeaderHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId) {
//     super(inflater, parent, layoutId);
//   }
// 
//   public HeaderHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId, boolean isFillParent) {
//     super(inflater, parent, layoutId, isFillParent);
//   }
// }


import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import me.henrytao.me.sample.R;
import me.henrytao.recyclerview.SimpleRecyclerViewAdapter;
import me.henrytao.recyclerview.holder.FooterHolder;
import me.henrytao.recyclerview.holder.HeaderHolder;
/*
 * Copyright 2016 "Henry Tao <hi@henrytao.me>"
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package me.henrytao.sample.adapter;



/**
 * Created by henrytao on 2/28/16.
 */
public class SpacingAdapter extends SimpleRecyclerViewAdapter {

  public SpacingAdapter(RecyclerView.Adapter baseAdapter) {
    super(baseAdapter);
  }

  @Override
  public RecyclerView.ViewHolder onCreateFooterViewHolder(LayoutInflater inflater, ViewGroup parent) {
    return new FooterHolder(inflater, parent, R.layout.item_spacing);
  }

// Path: recyclerview/src/main/java/me/henrytao/recyclerview/SimpleRecyclerViewAdapter.java
// public abstract class SimpleRecyclerViewAdapter extends RecyclerViewAdapter {
// 
//   public abstract RecyclerView.ViewHolder onCreateFooterViewHolder(LayoutInflater inflater, ViewGroup parent);
// 
//   public abstract RecyclerView.ViewHolder onCreateHeaderViewHolder(LayoutInflater inflater, ViewGroup parent);
// 
//   public SimpleRecyclerViewAdapter(RecyclerView.Adapter baseAdapter) {
//     super(1, 1, baseAdapter);
//   }
// 
//   @Override
//   public void onBindFooterViewHolder(RecyclerView.ViewHolder holder, int index) {
// 
//   }
// 
//   @Override
//   public void onBindHeaderViewHolder(RecyclerView.ViewHolder holder, int index) {
// 
//   }
// 
//   @Override
//   public RecyclerView.ViewHolder onCreateFooterViewHolder(LayoutInflater inflater, ViewGroup parent, int index) {
//     return onCreateFooterViewHolder(inflater, parent);
//   }
// 
//   @Override
//   public RecyclerView.ViewHolder onCreateHeaderViewHolder(LayoutInflater inflater, ViewGroup parent, int index) {
//     return onCreateHeaderViewHolder(inflater, parent);
//   }
// }
// 
// Path: recyclerview/src/main/java/me/henrytao/recyclerview/holder/FooterHolder.java
// public class FooterHolder extends BaseHolder {
// 
//   public FooterHolder(View itemView) {
//     super(itemView);
//   }
// 
//   public FooterHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId) {
//     super(inflater, parent, layoutId);
//   }
// 
//   public FooterHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId, boolean isFillParent) {
//     super(inflater, parent, layoutId, isFillParent);
//   }
// }
// 
// Path: recyclerview/src/main/java/me/henrytao/recyclerview/holder/HeaderHolder.java
// public class HeaderHolder extends BaseHolder {
// 
//   public HeaderHolder(View itemView) {
//     super(itemView);
//   }
// 
//   public HeaderHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId) {
//     super(inflater, parent, layoutId);
//   }
// 
//   public HeaderHolder(LayoutInflater inflater, ViewGroup parent, @LayoutRes int layoutId, boolean isFillParent) {
//     super(inflater, parent, layoutId, isFillParent);
//   }
// }


// Path: sample/src/main/java/me/henrytao/sample/adapter/SpacingAdapter.java
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import me.henrytao.me.sample.R;
import me.henrytao.recyclerview.SimpleRecyclerViewAdapter;
import me.henrytao.recyclerview.holder.FooterHolder;
import me.henrytao.recyclerview.holder.HeaderHolder;

/*
 * Copyright 2016 "Henry Tao <hi@henrytao.me>"
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package me.henrytao.sample.adapter;



/**
 * Created by henrytao on 2/28/16.
 */
public class SpacingAdapter extends SimpleRecyclerViewAdapter {

  public SpacingAdapter(RecyclerView.Adapter baseAdapter) {
    super(baseAdapter);
  }

  @Override
  public RecyclerView.ViewHolder onCreateFooterViewHolder(LayoutInflater inflater, ViewGroup parent) {
    return new FooterHolder(inflater, parent, R.layout.item_spacing);
  }

  @Override