| | |
| | |
|
| | | public class VisitFragment {
|
| | |
|
| | | public static class VisitLeftAdapter extends EasyRecyclerViewAdapter {
|
| | | /* public static class VisitLeftAdapter extends EasyRecyclerViewAdapter {
|
| | | private int oldPosition,newPosition;
|
| | | @Override
|
| | | public int[] getItemLayouts() {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | | * 日期item
|
| | | * @param viewHolder
|
| | | * @param position
|
| | | */
|
| | | private void TimeViewHolder(EasyRecyclerViewHolder viewHolder,int position){
|
| | |
|
| | | }
|
| | | /**
|
| | | * 信息内容item
|
| | | * @param viewHolder
|
| | | * @param position
|
| | | */
|
| | |
|
| | | private void InfoViewHolder(EasyRecyclerViewHolder viewHolder,int position){
|
| | | CheckBox fragment_visit_left_person_row_check_box = viewHolder.findViewById(R.id.fragment_visit_left_person_row_check_box);
|
| | | if (position ==oldPosition){
|
| | |
| | | this.newPosition = newPosition;
|
| | | notifyDataSetChanged();
|
| | | }
|
| | | }*/
|
| | | public static class VisitLeftAdapter extends EasyRecyclerViewAdapter {
|
| | |
|
| | | @Override
|
| | | public int[] getItemLayouts() {
|
| | | return new int[]{R.layout.fragment_visit_left_date_row,R.layout.fragment_visit_left_person_row};
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void onBindRecycleViewHolder(EasyRecyclerViewHolder viewHolder, int position) {
|
| | |
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int getRecycleViewItemType(int position) {
|
| | | return 0;
|
| | | }
|
| | | }
|
| | | }
|