Hey all...
I'm stuck around issue of TextView. I have string which has around
2000+ characters also has some HTML in it.
I'm using below code to display this TextView.
TableRow tr = new TableRow(this);
TextView conV = new TextView(this);
conV.layout(0, 15, 0, 0);
conV.setLinksClickable(true);
conV.setText(Html.fromHtml(allarticles.get(p).content));
conV.setTextColor(R.color.black);
conV.setTextSize(13);
conV.setWidth(fin);
conV.setAutoLinkMask(Linkify.ALL);
conV.setEllipsize(TruncateAt.START);
conV.setMinHeight(100);
conV.setMaxHeight(1000);
tr.addView(conV);
Now when this is seen in emulator. I cannot see all text.
It shows me only few lines in below format.
"
Hi, this is just testing for dynamic
...all about you can know.
So lets move on to new topic of
....which was never closed.
So lets go bye bye.
"
All characters get replace by ...
Why is it so ? I tried adding/removing/increasing min-height / max-
height.
Please can any tell me that is it bug in android that it cant handle
long String in TextView?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en