私は以下のコードでテキストビューを作成しました:
<TextView
android:id="@+id/txtDescription"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="16dip"
android:textStyle="bold"
android:maxLines="5">
上記のように、私は5行をtextviewの最大値に設定しました。
しかし、私の疑問は:私はそれが5行を超えている場合Textviewで表示しようとしている文字列、それは "..."文字で終わる5行までフィッティングされます。
例えば
Hello this is the demo of
string which i have
created especially for
the demo of textview
and setting maximum...
上と同じように、私はTextViewの出力で表示したい。
Plsは、私に提案、コードまたは任意のリンクを与える。
Thanx
回答:
回答№1は1ちょうど使用する android:ellipsize
.