title: Setting Textview's Attributes Programmatically
body: <p>I have created 5 TextView programmatically, now i want to set few Parameters/Attributes of their such as Gravity, Layout_Gravity, etc.</p>
  
  <p>I know we can set it in XML layout at Design-time:</p>
  
  <pre><code>android:gravity="center|center_horizontal|center_vertical"
  android:layout_gravity="center|center_horizontal|center_vertical"
  </code></pre>
  
  <p>But, How can we set Gravity/Layout_Gravity kinds of Attributes <strong>programmatically</strong>?</p>