title: Android - programmatically creating view progressBar
body: <p>How to create horizontal progessBar without XML or how to declare XML properties without XML contentView?</p>
  
  <p>I have layout in .java file and I want to set progressBar to horizontal and set its width/location.</p>
  
  <pre><code>RelativeLayout fv = new RelativeLayout(this);
  panel = new Panel(this);
  fv.addView(panel);
  ProgressBar pb = new ProgressBar(this);
  //pb.? - progress bar parameters
  fv.addView(pb);
  setContentView(fv);
  </code></pre>
  
  <p>Oh, and it can't be a pop-up window. I need progressBar on top of touch-enabled canvas layer..</p>