Преглед изворни кода

[마이][Common] 버킷리스트 태그 있을 경우 텍스트 잘림 현상 수정

Hasemi пре 6 година
родитељ
комит
4bcb3bf618
1 измењених фајлова са 18 додато и 7 уклоњено
  1. 18 7
      app/src/main/res/layout/bucke_list_detail_card_view.xml

+ 18 - 7
app/src/main/res/layout/bucke_list_detail_card_view.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
+<android.support.constraint.ConstraintLayout
   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"
@@ -12,20 +12,31 @@
     android:id="@+id/image_view_related_tag_image"
     android:layout_width="124dp"
     android:layout_height="93dp"
-    tools:src="@drawable/img_bestbucket_banner_1"
     android:scaleType="center"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintStart_toStartOf="parent"
+    app:layout_constraintTop_toTopOf="parent"
+    tools:src="@drawable/img_bestbucket_banner_1"
     />
 
   <TextView
     android:id="@+id/text_view_related_tag_text"
-    android:layout_width="wrap_content"
+    android:layout_width="0dp"
     android:layout_height="wrap_content"
     android:layout_gravity="center"
     android:layout_marginStart="18dp"
-    android:lineSpacingExtra="5.4sp"
-    android:textColor="#000000"
+    android:layout_marginEnd="18dp"
+    android:ellipsize="end"
+    android:lineSpacingExtra="6dp"
+    android:maxLines="2"
+    android:textColor="@color/C000000"
     android:textSize="14sp"
+    app:layout_constrainedWidth="true"
+    app:layout_constraintBottom_toBottomOf="parent"
+    app:layout_constraintEnd_toEndOf="parent"
+    app:layout_constraintStart_toEndOf="@+id/image_view_related_tag_image"
+    app:layout_constraintTop_toTopOf="parent"
     tools:text="더 속도감 있게!
-익스트림 액티비티"
+익스트림 액티비티dddddddddddddddddddddddddddddddd"
     />
-</LinearLayout>
+</android.support.constraint.ConstraintLayout>