content: package com.wanjian.view.demo;
  
  import android.content.Intent;
  import android.os.Bundle;
  import android.support.annotation.Nullable;
  import android.support.v7.app.AppCompatActivity;
  import android.view.View;
  
  /**
   * Created by wanjian on 2018/1/29.
   */
  
  public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(@Nullable Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.activity_main);
  
          findViewById(R.id.group).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(new Intent(getApplicationContext(), GroupDemoActivity.class));
              }
          });
          findViewById(R.id.divider).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(new Intent(getApplicationContext(), GroupDividerDemoActivity.class));
              }
          });
          findViewById(R.id.expandListDemo).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(new Intent(getApplicationContext(), ExpandListDemoActivity.class));
              }
          });
          findViewById(R.id.add).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(new Intent(getApplicationContext(), AddDemoActivity.class));
              }
          });
          findViewById(R.id.remove).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(new Intent(getApplicationContext(), RemoveDemoActivity.class));
              }
          });
          findViewById(R.id.refresh).setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  startActivity(new Intent(getApplicationContext(), RefreshDemoActivity.class));
              }
          });
      }
  
  }
  