| | |
| | | import android.widget.ArrayAdapter;
|
| | | import android.widget.SectionIndexer;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.R;
|
| | | import com.camnter.easyrecyclerview.adapter.EasyRecyclerViewAdapter;
|
| | | import com.camnter.easyrecyclerview.holder.EasyRecyclerViewHolder;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.Collections;
|
| | | import java.util.HashMap;
|
| | |
| | |
|
| | | public class PhoneCallFragment {
|
| | |
|
| | | public static class PhoneCallLeftAdapter extends EasyRecyclerViewAdapter {
|
| | |
|
| | | @Override
|
| | | public int[] getItemLayouts() {
|
| | | return new int[]{R.layout.fragment_phone_call_left_row};
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void onBindRecycleViewHolder(EasyRecyclerViewHolder viewHolder, int position) {
|
| | |
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int getRecycleViewItemType(int position) {
|
| | | return 0;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public class AlphabeticalAdapter extends ArrayAdapter<String> implements SectionIndexer
|
| | | {
|
| | | private HashMap<String, Integer> alphaIndexer;
|