From 9e5babf9db52e64bdae60137be7696e56241fca6 Mon Sep 17 00:00:00 2001
From: xingzilong <xingzilong@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 18 八月 2017 18:12:17 +0800
Subject: [PATCH] H264 NALU解析  并在RTSPServer判断

---
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java |   42 +++++++++++++++++++++++++-----------------
 1 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
index 9c1f5ff..fe7b317 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
@@ -21,14 +21,16 @@
 
 public class PhoneCallRightIntervieweeCell 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_phone_call_right_interviewee_cell_name)
+    private TextView fragment_phone_call_right_interviewee_cell_name;
+    @ViewInject(R.id.fragment_phone_call_right_interviewee_cell_dept)
+    private TextView fragment_phone_call_right_interviewee_cell_dept;
+    @ViewInject(R.id.fragment_phone_call_right_interviewee_cell_post)
+    private TextView fragment_phone_call_right_interviewee_cell_post;
+    @ViewInject(R.id.fragment_phone_call_right_interviewee_cell_photo)
+    private ImageView fragment_phone_call_right_interviewee_cell_photo;
+    @ViewInject(R.id.fragment_phone_call_right_interviewee_cell_photo_placeholder)
+    private TextView fragment_phone_call_right_interviewee_cell_photo_placeholder;
 
     private PhoneCallQueryItem item = new PhoneCallQueryItem();
 
@@ -39,26 +41,32 @@
     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);
+        View view = inflater.inflate(R.layout.fragment_phone_call_right_interviewee,this);
         ViewUtils.inject(this, view);
     }
 
     public void setIntervieweeInfo(final PhoneCallQueryItem 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.IMAGE_URL_BASE + item.getImagePath()));
+        fragment_phone_call_right_interviewee_cell_name.setText(item.getCallee());
+        fragment_phone_call_right_interviewee_cell_dept.setText(item.getCalleeDept());
+        fragment_phone_call_right_interviewee_cell_post.setText(item.getPostName());
+
+        fragment_phone_call_right_interviewee_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getCalleeImage()));
+        if (item.getCalleeImage() != null && !item.getCalleeImage().equals("")) {
+            fragment_phone_call_right_interviewee_cell_photo_placeholder.setVisibility(INVISIBLE);
+        } else {
+            fragment_phone_call_right_interviewee_cell_photo_placeholder.setVisibility(VISIBLE);
+        }
     }
 
-    @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_tel)
-    public void fragment_check_in_right_interviewee_cell_call_tel_click(View view) {
+    @OnClick(R.id.fragment_phone_call_right_interviewee_cell_call_tel)
+    public void fragment_phone_call_right_interviewee_cell_call_tel_click(View view) {
         Toast.makeText(MainActivity.getInstance(), "姝e湪鍛煎彨搴ф満"+item.getTel(), 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) {
+    @OnClick(R.id.fragment_phone_call_right_interviewee_cell_call_mobile)
+    public void fragment_phone_call_right_interviewee_cell_call_mobile_click(View view) {
         Toast.makeText(MainActivity.getInstance(), "姝e湪鍛煎彨鎵嬫満"+item.getMobilePhone(), Toast.LENGTH_SHORT).show();
     }
 

--
Gitblit v1.8.0