How do I make the size of text larger than the rest of the text that
follow it so that it look like a heading? I have tried using setTextSize
but it doesn't have any effect when I run eclipse when I do this
TextView tv1 = new
TextView(v.getContext());
Float textsize = tv1.getTextSize();
tv1.setText("\n" +
TempTempstr[1].replaceAll("&", "&") + ", " + TempTempstr[2] + ", " +
TempTempstr[3]);
tv1.setTypeface(null,
Typeface.BOLD);
tv1.setTextSize(textsize + 2);
LinearLayout.addView(tv1);
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