From 8b0a9e05b57ed2313954c23090e7eb69186d4cfb Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 13 四月 2017 15:34:24 +0800
Subject: [PATCH] 

---
 VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml                   |    2 -
 VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml                |   95 ++++++++++++++++++++++++++++++++++++++---------
 VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java |   13 ++++++
 3 files changed, 89 insertions(+), 21 deletions(-)

diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java
index ea051c9..0b3ce6b 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/VisitFragment.java
@@ -60,6 +60,14 @@
     private SimpleDraweeView fragment_visit_right_head_photo;
     @ViewInject(R.id.fragment_visit_right_card_photo)
     private SimpleDraweeView fragment_visit_right_card_photo;
+    @ViewInject(R.id.fragment_visit_right_card_photo_placeholder_text_view)
+    private TextView fragment_visit_right_card_photo_placeholder_text_view;
+    @ViewInject(R.id.fragment_visit_right_head_photo_placeholder_image)
+    private SimpleDraweeView fragment_visit_right_head_photo_placeholder_image;
+    @ViewInject(R.id.fragment_visit_right_card_photo_placeholder_image)
+    private SimpleDraweeView fragment_visit_right_card_photo_placeholder_image;
+    @ViewInject(R.id.fragment_visit_right_head_photo_placeholder_text_view)
+    private TextView fragment_visit_right_head_photo_placeholder_text_view;
 
     public int[] getLeftRightLayoutIds() {
         return new int[]{R.layout.fragment_visit_left, R.layout.fragment_visit_right};
@@ -113,6 +121,11 @@
         fragment_visit_right_exit_time.setText(item.getExitTime());
         fragment_visit_right_head_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
         fragment_visit_right_card_photo.setImageURI(AppApi.IMAGE_URL_BASE +item.getImagePath());
+        fragment_visit_right_card_photo_placeholder_text_view.setVisibility(View.INVISIBLE);
+        fragment_visit_right_head_photo_placeholder_text_view.setVisibility(View.INVISIBLE);
+        fragment_visit_right_head_photo_placeholder_image.setVisibility(View.INVISIBLE);
+        fragment_visit_right_card_photo_placeholder_image.setVisibility(View.INVISIBLE);
+
     }
 
 }
diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml
index 4456ec6..9f78b47 100644
--- a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml
+++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml
@@ -14,8 +14,6 @@
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:orientation="vertical">
-
-
             <RelativeLayout
                 android:layout_width="match_parent"
                 android:layout_height="50dp">
diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml
index 426e592..e46195c 100644
--- a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml
+++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml
@@ -10,25 +10,82 @@
         android:layout_centerHorizontal="true"
         android:layout_marginTop="20dp"
         android:orientation="horizontal">
-        <com.facebook.drawee.view.SimpleDraweeView
-            android:id="@+id/fragment_visit_right_head_photo"
-            android:layout_width="197dp"
-            android:layout_height="197dp"
-            android:background="@android:color/black"
-            fresco:placeholderImageScaleType="fitXY"
-            />
-        <com.facebook.drawee.view.SimpleDraweeView
-            android:id="@+id/fragment_visit_right_card_photo"
-            android:layout_width="330dp"
-            android:layout_height="210dp"
-            fresco:placeholderImageScaleType="fitXY"
-            android:layout_marginLeft="79dp"
-            fresco:roundedCornerRadius="20dp"
-            fresco:roundTopLeft="true"
-            fresco:roundTopRight="true"
-            fresco:roundBottomLeft="true"
-            fresco:roundBottomRight="true"
-            />
+        <RelativeLayout
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content">
+            <LinearLayout
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content">
+                <com.facebook.drawee.view.SimpleDraweeView
+                    android:id="@+id/fragment_visit_right_head_photo"
+                    android:layout_width="197dp"
+                    android:layout_height="197dp"
+                    fresco:roundedCornerRadius="5dp"
+                    android:background="@drawable/u45"
+                    fresco:placeholderImageScaleType="fitXY"
+                    />
+                <com.facebook.drawee.view.SimpleDraweeView
+                    android:id="@+id/fragment_visit_right_card_photo"
+                    android:layout_width="330dp"
+                    android:layout_height="210dp"
+                    fresco:placeholderImageScaleType="fitXY"
+                    android:layout_marginLeft="79dp"
+                    fresco:roundedCornerRadius="5dp"
+                    fresco:roundTopLeft="true"
+                    fresco:roundTopRight="true"
+                    fresco:roundBottomLeft="true"
+                    fresco:roundBottomRight="true"
+                    />
+            </LinearLayout>
+            <LinearLayout
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content">
+                <com.facebook.drawee.view.SimpleDraweeView
+                    android:id="@+id/fragment_visit_right_head_photo_placeholder_image"
+                    android:layout_width="197dp"
+                    android:layout_height="197dp"
+                    fresco:roundedCornerRadius="5dp"
+                    android:background="#07000000"
+                    android:src="@drawable/u45"
+                    fresco:placeholderImageScaleType="fitXY"
+                    />
+                <com.facebook.drawee.view.SimpleDraweeView
+                    android:id="@+id/fragment_visit_right_card_photo_placeholder_image"
+                    android:layout_width="330dp"
+                    android:layout_height="210dp"
+                    fresco:placeholderImageScaleType="fitXY"
+                    android:layout_marginLeft="79dp"
+                    fresco:roundedCornerRadius="5dp"
+                    android:background="#07000000"
+                    fresco:roundTopLeft="true"
+                    fresco:roundTopRight="true"
+                    fresco:roundBottomLeft="true"
+                    fresco:roundBottomRight="true"
+                    />
+            </LinearLayout>
+            <LinearLayout
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content">
+                <TextView
+                    android:id="@+id/fragment_visit_right_head_photo_placeholder_text_view"
+                    android:layout_width="197dp"
+                    android:layout_height="197dp"
+                    android:background="#07000000"
+                    android:src="@drawable/u45"
+                    />
+                <TextView
+                    android:id="@+id/fragment_visit_right_card_photo_placeholder_text_view"
+                    android:layout_width="330dp"
+                    android:layout_height="210dp"
+                    android:layout_marginLeft="79dp"
+                    android:text="璇佷欢鐓�"
+                    android:gravity="center"
+                    android:layout_gravity="center"
+                    android:textSize="@dimen/text_size_navigation"
+                    android:background="#00000000"
+                    />
+            </LinearLayout>
+        </RelativeLayout>
     </LinearLayout>
     <ScrollView
         android:layout_width="match_parent"

--
Gitblit v1.8.0