Hello
I have a String[] and I need to create a "paragraph" for each of the
strings in the array.
basically what I am doing at the moment is this:
LinearLayout text = (LinearLayout)
this.findViewById(R.id.itemText);
String[] ps = article.getATxt().split(Pattern.quote("\n"));
for (String p : ps) {
TextView newPar = new TextView(this);
newPar.setPadding(0, 0, 0, 6);
newPar.setText(p);
text.addView(newPar);
}
I am not happy with the way I format (padding) each new textView beign
created. I was wondering if there is a way to assign a style
dinamically so that I can extract from the code the styling.
Thanks
--
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