title: Drawing dashed line on Android programmatically
body: <p>I want to draw horizontal dashed lines between programmatically generated TextViews. I tried this code :</p>
  
  <pre><code>Paint fgPaintSel = new Paint();
  fgPaintSel.setARGB(255, 0, 0, 0);
  fgPaintSel.setStyle(Paint.Style.STROKE);
  fgPaintSel.setPathEffect(new DashPathEffect(new float[]{5, 10}, 0));
  </code></pre>
  
  <p>But nothing happened. I just copied and pasted this code. What should I do to draw a dashed line? Thanks.</p>