TextView with too long Strings

android, android-layout

Solution

you can set

android:maxLines="1"
android:ellipsize="end"

to your textview, so the text which long than your textview will be hide.

Problem

I have this `layout` ``` <ScrollView> <TextView android:id="@+id/textView" /> </ScrollView> ``` When I try to set a too long text, this `Textview` doesn't show that. ``` //OnCreate //... TextView textView = (TextView) findViewById(R.id.textView); textView.setText("..."); //Here is a text with more than 2500 //chars and at least have 10 \n char //(it means has at least 10 paragraph) ``` How can do I show that text? Edit One : Even I set a `background` to that `TextView` and the `TextView` does'nt show that background

Original source