content: package yifeiyuan.practice.practicedemos.recyclerview;
  
  import android.os.Bundle;
  import android.support.design.widget.FloatingActionButton;
  import android.support.design.widget.Snackbar;
  import android.support.v7.app.AppCompatActivity;
  import android.support.v7.widget.Toolbar;
  
  import butterknife.ButterKnife;
  import butterknife.InjectView;
  import yifeiyuan.practice.practicedemos.R;
  
  public class HorizontalRvActivity extends AppCompatActivity {
  
      @InjectView(R.id.toolbar)
      Toolbar mToolbar;
      @InjectView(R.id.fab)
      FloatingActionButton mFab;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_horizontal_rv);
          ButterKnife.inject(this);
          mToolbar = (Toolbar) findViewById(R.id.toolbar);
          setSupportActionBar(mToolbar);
  
          mFab = (FloatingActionButton) findViewById(R.id.fab);
          mFab.setOnClickListener(view -> Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                  .setAction("Action", null).show());
  
          getSupportFragmentManager().beginTransaction().add(R.id.fl_container, new HoriListFragment(), "Horizen").commit();
  
      }
  
  }
  