Browse Source

修复对方发的图片,预览变形

liuzhenxing1118 2 years ago
parent
commit
f74157a309

+ 1 - 1
app/src/main/res/layout/chat_fragment_photo.xml

@@ -9,7 +9,7 @@
     <ImageView
         android:id="@+id/mItemPhoto"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="match_parent"
         android:layout_centerInParent="true"
         android:scaleType="centerCrop"
         />

+ 1 - 1
app/src/main/res/layout/chat_fragment_video.xml

@@ -9,7 +9,7 @@
     <SurfaceView
         android:id="@+id/surfaceView"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="match_parent"
         android:layout_centerInParent="true"
         android:scaleType="centerCrop"
         />