content: package com.jennifer.andy.nestedscrollingdemo.ui.abl;
  
  import android.os.Bundle;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.DividerItemDecoration;
  import android.support.v7.widget.LinearLayoutManager;
  import android.support.v7.widget.RecyclerView;
  
  import com.jennifer.andy.nestedscrollingdemo.R;
  import com.jennifer.andy.nestedscrollingdemo.adapter.SimpleStringAdapter;
  
  import java.util.ArrayList;
  import java.util.List;
  
  /**
   * Author:  andy.xwt
   * Date:    2018/8/8 13:56
   * Description:
   */
  
  public class CdlWithAppBarWithCollActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_cdl_abl_ctl);
          initView();
      }
  
      private void initView() {
          final RecyclerView recyclerView = findViewById(R.id.recycler_view);
          recyclerView.setLayoutManager(new LinearLayoutManager(this));
          recyclerView.setAdapter(new SimpleStringAdapter(initStrings(), this));
          recyclerView.addItemDecoration(new DividerItemDecoration(this, DividerItemDecoration.VERTICAL));
      }
  
      private List<String> initStrings() {
          List<String> list = new ArrayList<>();
          for (int i = 0; i < 100; i++) {
              list.add(i + "--->CollapsingToolbarLayout与AppBarLayout");
          }
          return list;
      }
  }
  