| | |
| | | package cn.com.basic.face.fragment;
|
| | |
|
| | | import android.support.v7.widget.LinearLayoutManager;
|
| | | import android.text.Editable;
|
| | | import android.text.TextWatcher;
|
| | | import android.view.LayoutInflater;
|
| | | import android.view.View;
|
| | | import android.widget.EditText;
|
| | | import android.widget.LinearLayout;
|
| | |
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.R;
|
| | |
|
| | | 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 cn.com.basic.face.widget.phonecall.PhoneCallRightIntervieweeCell;
|
| | |
|
| | | import com.camnter.easyrecyclerview.widget.EasyRecyclerView;
|
| | | import com.lidroid.xutils.ViewUtils;
|
| | | import com.lidroid.xutils.view.annotation.ViewInject;
|
| | | import com.lidroid.xutils.view.annotation.event.OnClick;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | public class PhoneCallFragment extends LeftRightBaseFragment {
|
| | |
|
| | |
| | | return instance;
|
| | | }
|
| | |
|
| | | private View fragment_phone_call_left;
|
| | | private View mViewRight;
|
| | |
|
| | | @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)
|
| | | private LinearLayout fragment_phone_call_left_sort_type_linear_layout;
|
| | | @ViewInject(R.id.fragment_phone_call_right_interviewee_cell)
|
| | | private PhoneCallRightIntervieweeCell fragment_phone_call_right_interviewe_cell;
|
| | | private PhoneCallRightIntervieweeCell fragment_phone_call_right_interviewee_cell;
|
| | | @ViewInject(R.id.fragment_phone_call_left_list_view)
|
| | | private PhoneCallLeftListView fragment_phone_call_left_list_view;
|
| | | @ViewInject(R.id.fragment_phone_call_left_sort_by_name_radio_button)
|
| | |
| | | @ViewInject(R.id.fragment_phone_call_left_search)
|
| | | private EditText fragment_phone_call_left_search;
|
| | |
|
| | | public View addLeftLayout() {
|
| | | fragment_phone_call_left = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_phone_call_left,null);
|
| | | ViewUtils.inject(this, fragment_phone_call_left);
|
| | | fragment_phone_call_left_list_view.setLayoutManager(new LinearLayoutManager(getActivity(),LinearLayoutManager.VERTICAL,false));
|
| | | private int pageNum = 1;
|
| | |
|
| | | return fragment_phone_call_left;
|
| | | }
|
| | |
|
| | | public View addRightLayout() {
|
| | | mViewRight = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_phone_call_right,null);
|
| | | fragment_phone_call_right_interviewe_cell = (PhoneCallRightIntervieweeCell) mViewRight.findViewById(R.id.fragment_phone_call_right_interviewee_cell);
|
| | | return mViewRight;
|
| | | public int[] getLeftRightLayoutIds() {
|
| | | return new int[]{R.layout.fragment_phone_call_left, R.layout.fragment_phone_call_right};
|
| | | }
|
| | |
|
| | | protected void initListeners() {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void loadLeftList() {
|
| | | public void append() {
|
| | | PhoneCallMng.getInstance().findPhoneCallLeftList(!fragment_phone_call_left_sort_by_name_radio_button.isChecked(),
|
| | | fragment_phone_call_left_search.getText().toString());
|
| | | fragment_phone_call_left_search.getText().toString(), pageNum, true);
|
| | | }
|
| | |
|
| | | public void addPageNum() {
|
| | | pageNum++;
|
| | | }
|
| | |
|
| | | public void loadLeftList() {
|
| | | pageNum = 1;
|
| | | PhoneCallMng.getInstance().findPhoneCallLeftList(!fragment_phone_call_left_sort_by_name_radio_button.isChecked(),
|
| | | fragment_phone_call_left_search.getText().toString(), pageNum, false);
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_phone_call_left_back)
|
| | |
| | | return fragment_phone_call_left_list_view;
|
| | | }
|
| | |
|
| | | public PhoneCallRightIntervieweeCell get_fragment_phone_call_right_interviewe_cell() {
|
| | | return fragment_phone_call_right_interviewe_cell;
|
| | | public PhoneCallRightIntervieweeCell get_fragment_phone_call_right_interviewee_cell() {
|
| | | return fragment_phone_call_right_interviewee_cell;
|
| | | }
|
| | |
|
| | | }
|