package cn.com.basic.face.widget;
|
|
import android.content.Context;
|
import android.util.AttributeSet;
|
import android.view.LayoutInflater;
|
import android.view.View;
|
import android.widget.LinearLayout;
|
import android.widget.TextView;
|
|
import com.bsk.zhangbo.demoforbsk.R;
|
import com.lidroid.xutils.ViewUtils;
|
|
import cn.com.basic.face.discern.query.item.VisitorQueryItem;
|
|
/**
|
* Created by Sinoe on 2017/2/22.
|
*/
|
|
public class CheckInRightVisitorCell extends LinearLayout{
|
private Context mContext;
|
private TextView mTvTitle,mTvPhone,mTvCompany,mTvCardId,mTvDepartment,mTvWork,mBtnLandline,mBtnMobile;
|
private LinearLayout mLayoutTo,mLayoutFrom;
|
public CheckInRightVisitorCell(Context context) {
|
super(context);
|
}
|
|
public CheckInRightVisitorCell(Context context, AttributeSet attrs) {
|
super(context, attrs);
|
this.mContext = context;
|
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
View view = inflater.inflate(R.layout.fragment_check_in_right_visitor,this);
|
|
mTvTitle = (TextView) findViewById(R.id.fragment_check_in_right_interviewee_cell_name);
|
ViewUtils.inject(this, view);
|
}
|
|
/**
|
* 设置类型
|
* @param type
|
*/
|
public void setType(int type){
|
|
}
|
|
/**
|
* 设置标题
|
* @param title
|
*/
|
public void setTitle(String title){
|
mTvTitle.setText(title);
|
}
|
|
|
|
public void setVisitorInfo(VisitorQueryItem item) {
|
// fragment_check_in_right_visitor_cell.setTitle(item.getName());
|
// leftCompanyName.setText(item.getCompanyName());
|
// leftIdentityNumber.setText(item.getIdentify());
|
// leftMobilePhone.setText(item.getPhone());
|
// leftPhoto.setImageURI(Uri.parse(AppApi.CHENXINGGROUND_IMAGEURL_BASE + item.getImagePath()));
|
}
|
}
|