xuxiuxi
2017-04-05 ea239bc2b864c3bd39c0ca0a42e14cea8ee76365


git-svn-id: http://192.168.1.226/svn/proxy@345 454eff88-639b-444f-9e54-f578c98de674
1个文件已添加
4个文件已修改
109 ■■■■■ 已修改文件
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/PhoneCallFragment.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/PhoneCallFragment.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java 78 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_phone_call_left_row.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_phone_call_right.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/adapter/PhoneCallFragment.java
@@ -1,7 +1,9 @@
package cn.com.basic.face.adapter;
import android.content.Context;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.RelativeLayout;
import android.widget.SectionIndexer;
import android.widget.TextView;
@@ -34,7 +36,7 @@
        @Override
        public void onBindRecycleViewHolder(EasyRecyclerViewHolder viewHolder, int position) {
            TextView fragment_phone_call_left_row_name = viewHolder.findViewById(R.id.fragment_phone_call_left_interviewee_row_name);
            TextView fragment_phone_call_left_row_name = viewHolder.findViewById(R.id.fragment_phone_call_left_row_name);
            TextView fragment_phone_call_left_row_dept = viewHolder.findViewById(R.id.fragment_phone_call_left_interviewee_row_dept);
            if (isSortByDept) {
                fragment_phone_call_left_row_name.setTextColor(MainActivity.getInstance().getResources().getColor(R.color.colorText_b));
@@ -43,11 +45,19 @@
                fragment_phone_call_left_row_name.setTextColor(MainActivity.getInstance().getResources().getColor(R.color.colorText_5));
                fragment_phone_call_left_row_dept.setTextColor(MainActivity.getInstance().getResources().getColor(R.color.colorText_b));
            }
            PhoneCallQueryItem item = getItem(position);
            final PhoneCallQueryItem item = getItem(position);
            fragment_phone_call_left_row_name.setText(item.getName());
            fragment_phone_call_left_row_dept.setText(item.getDeptName());
            SimpleDraweeView fragment_phone_call_left_row_photo = viewHolder.findViewById(R.id.fragment_phone_call_left_row_photo);
            fragment_phone_call_left_row_photo.setImageURI(AppApi.IMAGEURL_BASE+item.getImagePath());
            RelativeLayout fragment_phone_call_left_row_relativeLayout = viewHolder.findViewById(R.id.fragment_phone_call_left_row_relativeLayout);
            fragment_phone_call_left_row_relativeLayout.setOnClickListener(new View.OnClickListener(){
                @Override
                public void onClick(View v) {
                    cn.com.basic.face.fragment.PhoneCallFragment.getInstance()
                            .get_fragment_phone_call_right_interviewe_cell().setIntervieweeInfo(item);
                }
            });
        }
        @Override
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/PhoneCallFragment.java
@@ -19,6 +19,7 @@
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;
@@ -43,7 +44,7 @@
    @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 CheckInIntervieweeCell fragment_phone_call_right_interviewe_cell;
    private PhoneCallRightIntervieweeCell fragment_phone_call_right_interviewe_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)
@@ -61,7 +62,7 @@
    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_interviewee_cell);
        fragment_phone_call_right_interviewe_cell = (PhoneCallRightIntervieweeCell) mViewRight.findViewById(R.id.fragment_phone_call_right_interviewee_cell);
        return mViewRight;
    }
@@ -102,4 +103,8 @@
        return fragment_phone_call_left_list_view;
    }
    public PhoneCallRightIntervieweeCell get_fragment_phone_call_right_interviewe_cell() {
        return fragment_phone_call_right_interviewe_cell;
    }
}
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
New file
@@ -0,0 +1,78 @@
package cn.com.basic.face.widget.phonecall;
import android.content.Context;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.alibaba.fastjson.JSON;
import com.bsk.zhangbo.demoforbsk.R;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;
import cn.com.basic.face.base.MainActivity;
import cn.com.basic.face.discern.query.item.CheckInQueryItem;
import cn.com.basic.face.service.vo.PhoneCallFragment;
import cn.com.basic.face.util.AppApi;
import cn.com.basic.face.widget.checkin.CheckInIntervieweeCell;
public class PhoneCallRightIntervieweeCell extends LinearLayout {
    public void setIntervieweeInfo(PhoneCallFragment.PhoneCallQueryItem item) {
        setIntervieweeInfo(JSON.parseObject(JSON.toJSONString(item), CheckInQueryItem.class));
    }
    private CheckInQueryItem item = new CheckInQueryItem();
    public PhoneCallRightIntervieweeCell(Context context) {
        super(context);
    }
    public PhoneCallRightIntervieweeCell(Context context, AttributeSet attrs) {
        super(context, attrs);
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View view = inflater.inflate(R.layout.fragment_check_in_right_interviewee,this);
        ViewUtils.inject(this, view);
    }
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_name)
    private TextView fragment_check_in_right_interviewee_cell_name;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_dept)
    private TextView fragment_check_in_right_interviewee_cell_dept;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_post)
    private TextView fragment_check_in_right_interviewee_cell_post;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_photo)
    private ImageView fragment_check_in_right_interviewee_cell_photo;
    public void setIntervieweeInfo(final CheckInQueryItem item) {
        if (item == null) return;
        this.item = item;
        fragment_check_in_right_interviewee_cell_name.setText(item.getName());
        fragment_check_in_right_interviewee_cell_dept.setText(item.getDeptName());
        fragment_check_in_right_interviewee_cell_post.setText(item.getPostName());
        fragment_check_in_right_interviewee_cell_photo.setImageURI(Uri.parse(AppApi.IMAGEURL_BASE + item.getImagePath()));
    }
    public CheckInQueryItem getInterviewee() {
        return item;
    }
    @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_tel)
    public void fragment_check_in_right_interviewee_cell_call_tel_click(View view) {
        Toast.makeText(MainActivity.getInstance(), "正在呼叫座机"+item.getPhone(), Toast.LENGTH_SHORT).show();
    }
    @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_mobile)
    public void fragment_check_in_right_interviewee_cell_call_mobile_click(View view) {
        Toast.makeText(MainActivity.getInstance(), "正在呼叫手机"+item.getPhone(), Toast.LENGTH_SHORT).show();
    }
}
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_phone_call_left_row.xml
@@ -8,13 +8,13 @@
    android:paddingLeft="20dp"
    android:paddingRight="20dp">
    <RelativeLayout
        android:id="@+id/fragment_phone_call_left_interviewee_row_relativeLayout"
        android:id="@+id/fragment_phone_call_left_row_relativeLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingTop="12dp"
        android:paddingBottom="12dp">
        <TextView
            android:id="@+id/fragment_phone_call_left_interviewee_row_name"
            android:id="@+id/fragment_phone_call_left_row_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text=""
@@ -27,7 +27,7 @@
            android:layout_height="wrap_content"
            android:text=""
            android:layout_centerVertical="true"
            android:layout_toRightOf="@id/fragment_phone_call_left_interviewee_row_name"
            android:layout_toRightOf="@id/fragment_phone_call_left_row_name"
            android:layout_marginLeft="20dp"
            android:textSize="@dimen/text_size_big"
            android:textColor="@color/colorText_5"/>
VisitFace/DemoForBsk/app/src/main/res/layout/fragment_phone_call_right.xml
@@ -3,7 +3,7 @@
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <cn.com.basic.face.widget.checkin.CheckInIntervieweeCell
    <cn.com.basic.face.widget.phonecall.PhoneCallRightIntervieweeCell
        android:id="@+id/fragment_phone_call_right_interviewee_cell"
        android:layout_width="254dp"
        android:layout_height="350dp"