title: android align text in textview through java
body: <p>I have a textview in which I append a few lines through java as follows.</p>
  
  <pre><code>TextView myTextView = (TextView) findViewById(R.id.mytextview);
  myTextView.append("this is line one of the textview");
  myTextView.append("this is line two");
  myTextView.append("this is line three of the textview");
  </code></pre>
  
  <p>I want to center align only the second line. I've tried different html tags but none work.
  Could someone please tell me how it is done in android.</p>