Explorar el Código

Merge branch 'develop' of https://github.com/swict/LifePlusAndroid into develop

hyodong.min hace 7 años
padre
commit
4ac1099ccc

+ 3 - 2
app/src/main/res/layout/default_book_mark_image_view.xml

@@ -8,8 +8,9 @@
 
   <ImageView
     android:id="@+id/image_view_default_book_mark"
-    android:layout_width="match_parent"
-    android:layout_height="wrap_content"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
+    app:layout_constraintDimensionRatio="V, 311:233"
     android:scaleType="centerCrop"
     app:layout_constraintStart_toStartOf="parent"
     app:layout_constraintEnd_toEndOf="parent"

+ 5 - 4
app/src/main/res/layout/overview_item_view.xml

@@ -3,15 +3,16 @@
   xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
   xmlns:tools="http://schemas.android.com/tools"
-  android:layout_width="151dp"
-  android:layout_height="202dp">
+  android:layout_width="wrap_content"
+  android:layout_height="wrap_content">
 
   <ImageView
     android:id="@+id/image_view_item"
-    android:layout_width="match_parent"
-    android:layout_height="match_parent"
+    android:layout_width="0dp"
+    android:layout_height="0dp"
     android:scaleType="centerCrop"
     app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintDimensionRatio="V,151:202"
     app:layout_constraintEnd_toEndOf="parent"
     app:layout_constraintStart_toStartOf="parent"
     app:layout_constraintTop_toTopOf="parent"