Просмотр исходного кода

[카테고리메인][Common] 이미지 scaleType 조정

Hasemi 7 лет назад
Родитель
Сommit
0be085fa17

+ 3 - 3
app/src/main/res/layout/main_fifth_category_linear_view.xml

@@ -4,15 +4,15 @@
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
-  android:layout_height="wrap_content"
+  android:layout_height="311dp"
   >
 
   <ImageView
     android:id="@+id/image_view_main_fifth_category"
     android:layout_width="match_parent"
-    android:layout_height="311dp"
+    android:layout_height="match_parent"
     android:background="@color/C333333"
-    android:scaleType="fitXY"
+    android:scaleType="centerCrop"
     tools:src="@drawable/img_bestbucket_3"
     />
 

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

@@ -10,7 +10,7 @@
     android:id="@+id/image_view_main_third_category"
     android:layout_width="match_parent"
     android:layout_height="148dp"
-    android:scaleType="fitXY"
+    android:scaleType="centerCrop"
     tools:src="@drawable/img_bestbucket_banner_5"
     />