title: Android canvas draw line - make the line thicker
body: <p>This seems like it should be somewhat trivial, however in my android app, I am using canvas to draw a series of lines that are connected together. For some reason my lines are very very faint and thin. I was wondering how can I make my lines thicker? Here is my code..</p>
  
  <pre><code>for(int i=1; i&lt;myArrayListOfValues.size(); i++){
  
          Paint myPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
          myPaint.setStrokeWidth(8/*1 /getResources().getDisplayMetrics().density*/);
          myPaint.setColor(0xffff0000);   //color.RED
  
          canvas.drawLine(myArrayListOfValues.get(i), myArrayListOfValues.get(i), myArrayListOfValues.get(i-1), myArrayListOfValues.get(i-1), myPaint);       
  
      }
  </code></pre>
  
  <p>Another thing is..my lines and circles that I draw are ALWAYS black.. setColor() never seems to have any effect. I've tried using the color names (e.g color.red) and even their hex values (e.g 0xffff0000)</p>