content: package com.yl.recyclerview.activity;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.view.View;
  
  import com.yl.recyclerview.R;
  
  /**
   * RecyclerView下拉刷新、上拉加载更多
   * Created by yangle on 2017/10/12.
   * <p>
   * Website：http://www.yangle.tech
   * <p>
   * GitHub：https://github.com/alidili
   * <p>
   * CSDN：http://blog.csdn.net/kong_gu_you_lan
   * <p>
   * JianShu：http://www.jianshu.com/u/34ece31cd6eb
   */
  
  public class MainActivity extends AppCompatActivity implements View.OnClickListener {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          findViewById(R.id.btn_base).setOnClickListener(this);
          findViewById(R.id.btn_wrapper).setOnClickListener(this);
      }
  
      @Override
      public void onClick(View v) {
          Intent intent = null;
          switch (v.getId()) {
              case R.id.btn_base:
                  intent = new Intent(this, LoadMoreActivity.class);
                  break;
  
              case R.id.btn_wrapper:
                  intent = new Intent(this, LoadMoreWrapperActivity.class);
                  break;
  
              default:
                  break;
          }
  
          if (intent != null) {
              startActivity(intent);
          }
      }
  }
  