I want to create a setText that derives one textView but contains texts in different textStyle.
For instance, there are some codes below.And, I ask how to use different textStyle's in setText() without working on xml file.
TextView textView1 = (TextView) findViewById(R.id.textView1);
textView1.setText("The sum of numbers 1 to " + lastNumber + " is "+ sum);