Browse Source

修复图片显示问题

zengjiebin 7 years ago
parent
commit
70dfc2493b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/src/main/res/layout/find_item.xml

+ 2 - 0
app/src/main/res/layout/find_item.xml

@@ -46,6 +46,8 @@
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginTop="@dimen/dp_10"
         android:layout_marginTop="@dimen/dp_10"
+        android:scaleType="fitXY"
+        android:adjustViewBounds="true"
         android:src="@mipmap/icon" />
         android:src="@mipmap/icon" />
 
 
     <RelativeLayout
     <RelativeLayout