compile 'com.jcodecraeer:xrecyclerview:1.3.2' xrecycleview的依赖
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1';recycleview的依赖
compile 'com.bartoszlipinski.recyclerviewheader:library:1.2.0' recycleview加头部依赖
RecyclerViewHeader recyclerViewHeader=new RecyclerViewHeader(getContext());
recyclerViewHeader.attachTo(tjrv2);
recyclerViewHeader.addView(view2);