title: How to make horizontal line in Android programmatically
body: <p>I am trying to fill linear layout programmatically like this </p>
  
  <pre><code>LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
              LayoutParams.WRAP_CONTENT,      
              LayoutParams.WRAP_CONTENT
      );
      params.setMargins(dpToPx(6), 0, 0, 0);
      kac.setLayoutParams(params);
      LinearLay.addView(kac);
  </code></pre>
  
  <p>and I want to add (after every TextView (like kac)) a horizontal line like this one I have in my xml</p>
  
  <pre><code> &lt;View
              android:layout_width="fill_parent"
              android:layout_height="1dip"
              android:background="#B3B3B3" 
               android:padding="10dp"
              /&gt;
  </code></pre>