I create a TextView
programmatically. I set up the marquee and single line as this:
contol_list_textview_scrolltext[t].setEllipsize(TextUtils.TruncateAt.MARQUEE);
contol_list_textview_scrolltext[t].setSingleLine(true);
contol_list_textview_scrolltext[t].setMaxLines(1);
contol_list_textview_scrolltext[t].setLines(1);
contol_list_textview_scrolltext[t].setMarqueeRepeatLimit(-1); // marquee forever
contol_list_textview_scrolltext[t].setHorizontalFadingEdgeEnabled(true);
contol_list_textview_scrolltext[t].setHorizontallyScrolling(true);
contol_list_textview_scrolltext[t].setFocusable(true);
contol_list_textview_scrolltext[t].setFocusableInTouchMode(true);
contol_list_textview_scrolltext[t].setSelected(true);
Still i see text only on the same width as the screen, the other text is not shown. As i try to slide the TextView
from left to right.
I tried to set the width to a very large width, it still not working.
any suggestions on how to let the TextView
show the full text in 1 line ??