1TextView tv = new TextView(this);
2String string= "Hello";
3String title="MyTitle";
4SpannableString ss1= new SpannableString(string);
5ss1.setSpan(new RelativeSizeSpan(2f), 0, ss1.length(), 0);
6tv.append(ss1);
7tv.append(title);
8setContentView(tv);