title: Adding multiple TextViews into LinearLayout programmatically
body: <p>There is long string. I am dividing long string into words and setting TextView for each word. 
  (You can ask why I need this function? When user clicks on textview(word), application shows the meaning of the word)                   </p>
  
  <pre><code>...
      TextView tv = new TextView(this);
                  tv.setTextSize(24);
                  tv.setText(word);
                  ll.addView(tv);
  ...
  </code></pre>
  
  <p>My LinearLayout:</p>
  
  <pre><code>&lt;LinearLayout
          android:id="@+id/llReader"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:orientation="vertical" &gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>If I put LinearLayout's orientation vertical, it is putting each TextView in new line.
  For example:</p>
  
  <blockquote>
    <p>word1 </p>
    
    <p>word2 </p>
    
    <p>word3</p>
  </blockquote>
  
  <p>If I put it in horizontal orientation, it is putting all words only in one line:</p>
  
  <blockquote>
    <p>word 1, word 2, word 3</p>
  </blockquote>
  
  <p>In result word4,word5, word6 is not visible.</p>
  
  <p>How to add TextViews programmatically in this way?</p>
  
  <p><img src="https://i.stack.imgur.com/i7V5s.png" alt="enter image description here"></p>