From 3b28c64bb5585608a9aaba989c99a96a0dd1c782 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 05 四月 2017 12:43:37 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/PhoneCallFragment.java | 32 +++++--------------------------- 1 files changed, 5 insertions(+), 27 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/PhoneCallFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/PhoneCallFragment.java index 0684cd8..e9017ab 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/PhoneCallFragment.java +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/PhoneCallFragment.java @@ -8,11 +8,11 @@ import com.bsk.zhangbo.demoforbsk.R; -import cn.com.basic.face.adapter.CheckInLeftListViewAdapter; +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.util.Constant; -import cn.com.basic.face.widget.CheckInIntervieweeCell; +import cn.com.basic.face.widget.checkin.CheckInIntervieweeCell; import com.camnter.easyrecyclerview.widget.EasyRecyclerView; import com.lidroid.xutils.ViewUtils; import com.lidroid.xutils.view.annotation.ViewInject; @@ -31,13 +31,11 @@ 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) private LinearLayout fragment_phone_call_left_sort_type_linear_layout; - @ViewInject(R.id.fragment_phone_call_right_interviewe_cell) + @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; @@ -62,31 +60,11 @@ public View addRightLayout() { mViewRight = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_phone_call_right,null); - fragment_phone_call_right_interviewe_cell = (CheckInIntervieweeCell) mViewRight.findViewById(R.id.fragment_phone_call_right_interviewe_cell); + fragment_phone_call_right_interviewe_cell = (CheckInIntervieweeCell) mViewRight.findViewById(R.id.fragment_phone_call_right_interviewee_cell); return mViewRight; } 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) { @@ -109,7 +87,7 @@ protected void initData() { mList = new ArrayList(); - for (int i=0;i<25;i++){ + for (int i=0;i<3;i++){ mList.add(""); } mAdapter.setList(mList); -- Gitblit v1.8.0