| | |
| | | import android.widget.Toast;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.R;
|
| | | import cn.com.basic.face.adapter.AttendanceAdapter;
|
| | | import cn.com.basic.face.adapter.VisitAdapter;
|
| | | import cn.com.basic.face.adapter.AttendanceFragment.AttendanceAdapter;
|
| | | import cn.com.basic.face.adapter.VisitFragment.VisitLeftAdapter;
|
| | | import cn.com.basic.face.base.LeftRightBaseFragment;
|
| | | import cn.com.basic.face.base.MainActivity;
|
| | |
|
| | |
| | | private View mViewLeft,mViewRight;
|
| | | private EasyRecyclerView mRightRecyclerView,mLeftRecyclerView;
|
| | | private AttendanceAdapter mRightAdapter;
|
| | | private VisitAdapter mLeftAdapter;
|
| | | private VisitLeftAdapter mLeftAdapter;
|
| | | public static AttendanceFragment newInstance(){
|
| | | return new AttendanceFragment();
|
| | | }
|
| | |
|
| | | public View addLeftLayout() {
|
| | | mViewLeft = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_attendance_left, null);
|
| | | mLeftRecyclerView = (EasyRecyclerView) mViewLeft.findViewById(R.id.visitor_manager_recycler);
|
| | | mLeftRecyclerView = (EasyRecyclerView) mViewLeft.findViewById(R.id.fragment_attendance_left_list_view);
|
| | | LinearLayoutManager manager = new LinearLayoutManager(getActivity(),LinearLayoutManager.VERTICAL,false);
|
| | | mLeftRecyclerView.setLayoutManager(manager);
|
| | | mLeftAdapter = new VisitAdapter();
|
| | | mLeftAdapter = new VisitLeftAdapter();
|
| | | ViewUtils.inject(this, mViewLeft);
|
| | | return mViewLeft;
|
| | | }
|
| | |
| | |
|
| | | public View addRightLayout() {
|
| | | mViewRight = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_attendance_right, null);
|
| | | mRightRecyclerView = (EasyRecyclerView) mViewRight.findViewById(R.id.attendance_recycler);
|
| | | mRightRecyclerView = (EasyRecyclerView) mViewRight.findViewById(R.id.fragment_attendance_right_list_view);
|
| | | mRightAdapter = new AttendanceAdapter();
|
| | | ViewUtils.inject(this, mViewRight);
|
| | | return mViewRight;
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | @OnClick(R.id.attendance_manager_back)
|
| | | @OnClick(R.id.fragment_attendance_left_back)
|
| | | public void back(View view) {
|
| | | MainActivity.selectPage(0);
|
| | | }
|