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

列表模式时,允许标题2行显示

HapeLee пре 11 месеци
родитељ
комит
d4951f0723
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/src/main/res/layout/item_bookshelf_list.xml

+ 2 - 1
app/src/main/res/layout/item_bookshelf_list.xml

@@ -117,7 +117,8 @@
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="2dp"
                 android:scrollbars="none"
-                android:singleLine="true"
+                android:maxLines="2"
+                android:ellipsize="end"
                 android:text="@string/book_name"
                 android:textSize="16sp"
                 android:textStyle="bold"