title: How Create more TextView in RelativeLayout in rows android
body: <p>how to create more <code>TextView</code> in relativelayout like </p>
  
  <p><a href="https://i.stack.imgur.com/YWFKP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YWFKP.jpg" alt="enter image description here"></a></p>
  
  <p>my code not showing 
  not like that :</p>
  
  <pre><code>RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
              ViewGroup.LayoutParams.WRAP_CONTENT);
      params.setMargins(5, 10, 5, 10);
      params.setMarginStart(40);
      params.setMarginEnd(40);
  
      for (int a = 0; a &lt; alquran.getindokata().length; a++) {
          textView = new TextView(context);
          textView.setLayoutParams(params);
          textView.setId(a);
          textView.setGravity(Gravity.CENTER);
          textView.setPadding(10, 5, 10, 5);
          textView.setBackgroundColor(context.getResources().getColor(R.color.hitam_pudar));
          textView.setText(alquran.getarabkata()[a] + "\n" + alquran.getindokata()[a]);
          Log.d(TAG, "VerseID " + id_surat +
                  " getKata " + alquran.getindokata()[a]
          );
          holder.terjemahankata.addView(textView);
      }
  </code></pre>