| | |
| | | package cn.com.basic.face.widget.phonecall;
|
| | |
|
| | | import android.content.Context;
|
| | | import android.os.Parcelable;
|
| | | import android.util.AttributeSet;
|
| | |
|
| | | import com.camnter.easyrecyclerview.widget.EasyRecyclerView;
|
| | |
| | | public class PhoneCallLeftListView extends EasyRecyclerView {
|
| | |
|
| | | private PhoneCallLeftAdapter adapter ;
|
| | | private Parcelable recyclerViewState;
|
| | |
|
| | | private void initView() {
|
| | | adapter = new PhoneCallLeftAdapter();
|
| | |
| | | }
|
| | |
|
| | | public void show(boolean isSortByDept, List list, boolean append) {
|
| | | if (append && adapter.getList().size() > 0) {
|
| | | this.scrollToPosition(adapter.getList().size()-1);
|
| | | }
|
| | | recyclerViewState = this.getLayoutManager().onSaveInstanceState();
|
| | | adapter.setList(list);
|
| | | setAdapter(adapter);
|
| | | adapter.setSortByDept(isSortByDept);
|
| | | this.getLayoutManager().onRestoreInstanceState(recyclerViewState);
|
| | | }
|
| | |
|
| | | public List getPrevList() {
|