瀏覽代碼

Fix mentions layout

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 年之前
父節點
當前提交
d7e7c29713
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/src/main/res/layout/rv_item_mention.xml

+ 3 - 1
app/src/main/res/layout/rv_item_mention.xml

@@ -49,10 +49,11 @@
 
     <LinearLayout
         android:id="@+id/linear_layout"
-        android:layout_width="wrap_content"
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_centerInParent="true"
         android:layout_marginStart="@dimen/margin_between_elements"
+        android:layout_marginEnd="@dimen/margin_between_elements"
         android:layout_toEndOf="@id/frame_layout"
         android:orientation="vertical">
 
@@ -70,6 +71,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:singleLine="true"
+            android:ellipsize="middle"
             android:textColor="?android:attr/textColorSecondary"
             tools:text="A week ago"/>