xuxiuxi
2017-04-18 4dcad62f9276d34d13ff6e35bd8b0a910a1df3f1
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/checkin/CheckInRightIntervieweeCell.java
@@ -11,6 +11,7 @@
import android.widget.Toast;
import com.bsk.zhangbo.demoforbsk.R;
import com.facebook.drawee.view.SimpleDraweeView;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;
@@ -20,6 +21,17 @@
import cn.com.basic.face.util.AppApi;
public class CheckInRightIntervieweeCell extends LinearLayout{
    @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;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_photo_placeholder)
    private TextView fragment_check_in_right_interviewee_cell_photo_placeholder;
    private CheckInQueryItem item;
@@ -34,15 +46,6 @@
        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;
@@ -50,6 +53,11 @@
        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.IMAGE_URL_BASE + item.getImagePath()));
        if (item.getImagePath() != null && !item.getImagePath().equals("")) {
            fragment_check_in_right_interviewee_cell_photo_placeholder.setVisibility(INVISIBLE);
        } else {
            fragment_check_in_right_interviewee_cell_photo_placeholder.setVisibility(VISIBLE);
        }
    }
    public CheckInQueryItem getInterviewee() {