title: Inflate programmatically for android layout
body: <p>I want to reuse existing layout again and again instead of creating/writing new xml. Currently, I have like this.</p>
  
  <p><img src="https://i.stack.imgur.com/Xx2OK.png" alt="enter image description here"></p>
  
  <p>I want to have like this programmatically instead of writing in xml (may be I want to write it in Activity).</p>
  
  <p><img src="https://i.stack.imgur.com/rEaiK.png" alt="enter image description here"></p>
  
  <p>May I know how to do? Also, another problem is that if I reuse like that, "id" will be same. If so, how can I set text?</p>
  
  <p><img src="https://i.stack.imgur.com/MvwDj.png" alt="enter image description here"></p>