次のRoboTextView
xml 宣言を使用します。
<com.package.utils.RobotoTextView
android:id="@+id/ttli_small_desc"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginRight="6dp"
android:textSize="12dp"
android:paddingBottom="6dp"
android:maxLines="5"
android:ellipsize="end"
android:textColor="@color/selectable_text_black_to_white"
bit:fontType="light"/>
これはカスタム ビュー オブジェクトですが、標準でテストしたところTextView
、同じ問題が発生します。このカスタム ビューでできることは、RobotoLight フォントを使用できるようにすることだけです。今では少し時代遅れのテクニックですが、そこにあるのでそれを使用します。
とにかく、私が期待するのは、このように見える最大5行です
word words words
words words words
word word words
words word
words words words...
しかし、ここに私が得ているものがあります:
基本的にはテキストを省略しますが、その後すぐに元に戻ります。私はsingleLine=false
それを修正しようとして他のランダムな属性をいじってみましたが、これまでのところ三振しました。これを修正する方法を知っている人はいますか?
ありがとう!