Why not just set it in your layout xml?



On Monday, September 10, 2012 4:26:40 AM UTC-5, plw wrote:
>
>  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to