| | |
| | | import cn.com.basic.face.adapter.CheckInFragment.CheckInLeftListViewAdapter;
|
| | | import cn.com.basic.face.base.LeftRightBaseFragment;
|
| | | import cn.com.basic.face.base.MainActivity;
|
| | | import cn.com.basic.face.service.PhoneCallMng;
|
| | | import cn.com.basic.face.util.Constant;
|
| | | import cn.com.basic.face.widget.checkin.CheckInIntervieweeCell;
|
| | | import cn.com.basic.face.widget.phonecall.PhoneCallLeftListView;
|
| | |
|
| | | import com.camnter.easyrecyclerview.widget.EasyRecyclerView;
|
| | | import com.lidroid.xutils.ViewUtils;
|
| | | import com.lidroid.xutils.view.annotation.ViewInject;
|
| | |
| | | private View fragment_phone_call_left;
|
| | | private View mViewRight;
|
| | |
|
| | | @ViewInject(R.id.fragment_phone_call_left_radio_group)
|
| | | private RadioGroup fragment_phone_call_left_radio_group;
|
| | | @ViewInject(R.id.fragment_phone_call_left_sort_radio_group)
|
| | | private RadioGroup fragment_phone_call_left_sort_radio_group;
|
| | | @ViewInject(R.id.fragment_phone_call_left_sort_type_linear_layout)
|
| | |
| | | @ViewInject(R.id.fragment_phone_call_right_interviewee_cell)
|
| | | private CheckInIntervieweeCell fragment_phone_call_right_interviewe_cell;
|
| | | @ViewInject(R.id.fragment_phone_call_left_list_view)
|
| | | private EasyRecyclerView fragment_phone_call_left_list_view;
|
| | | private PhoneCallLeftListView fragment_phone_call_left_list_view;
|
| | |
|
| | | private CheckInLeftListViewAdapter mAdapter;
|
| | | private List mList;
|
| | |
| | | }
|
| | |
|
| | | protected void initListeners() {
|
| | | fragment_phone_call_left_radio_group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
|
| | | @Override
|
| | | public void onCheckedChanged(RadioGroup radioGroup, int i) {
|
| | | switch (radioGroup.getCheckedRadioButtonId()){
|
| | | case R.id.fragment_phone_call_left_visitor_radio:
|
| | | fragment_phone_call_left_sort_type_linear_layout.setVisibility(View.GONE);
|
| | | mAdapter = new CheckInLeftListViewAdapter(getActivity(), Constant.CheckIn.VISITOR_ROW);
|
| | | mAdapter.setList(mList);
|
| | | fragment_phone_call_left_list_view.setAdapter(mAdapter);
|
| | | break;
|
| | | case R.id.fragment_phone_call_left_interviewee_radio:
|
| | | fragment_phone_call_left_sort_type_linear_layout.setVisibility(View.VISIBLE);
|
| | | mAdapter = new CheckInLeftListViewAdapter(getActivity(), Constant.CheckIn.INTERVIEWEE_ROW);
|
| | | mAdapter.set_fragment_check_in_left_sort_radio_group_type(CheckInLeftListViewAdapter.TYPE_NAME);
|
| | | mAdapter.setList(mList);
|
| | | fragment_phone_call_left_list_view.setAdapter(mAdapter);
|
| | | break;
|
| | | }
|
| | | }
|
| | | });
|
| | | fragment_phone_call_left_sort_radio_group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
|
| | | @Override
|
| | | public void onCheckedChanged(RadioGroup radioGroup, int i) {
|
| | |
| | |
|
| | | }
|
| | |
|
| | | protected void initData() {
|
| | | mList = new ArrayList();
|
| | | for (int i=0;i<3;i++){
|
| | | mList.add("");
|
| | | @Override
|
| | | public void setMenuVisibility(boolean menuVisible) {
|
| | | super.setMenuVisibility(menuVisible);
|
| | | if (menuVisible && fragment_phone_call_left_list_view != null) {
|
| | | PhoneCallMng.getInstance().findPhoneCallLeftList(true, "");
|
| | | }
|
| | | mAdapter.setList(mList);
|
| | | fragment_phone_call_left_list_view.setAdapter(mAdapter);
|
| | | }
|
| | |
|
| | | protected void initData() {
|
| | | // mList = new ArrayList();
|
| | | // for (int i=0;i<3;i++){
|
| | | // cn.com.basic.face.service.vo.PhoneCallFragment.PhoneCallQueryItem item =
|
| | | // new cn.com.basic.face.service.vo.PhoneCallFragment.PhoneCallQueryItem();
|
| | | // mList.add(item);
|
| | | // }
|
| | | // mAdapter.setList(mList);
|
| | | // fragment_phone_call_left_list_view.setAdapter(mAdapter);
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_phone_call_left_back)
|
| | |
| | | MainActivity.selectPage(0);
|
| | | }
|
| | |
|
| | | public PhoneCallLeftListView get_fragment_phone_call_left_list_view() {
|
| | | return fragment_phone_call_left_list_view;
|
| | | }
|
| | |
|
| | | }
|