title: Show/Hide ProgresBar in ActionBar on android API lower than 11
body: <p>I want to show/hide ProgressBar in ActionBar on all android devices.
  I am using android support library (android-support-v7-appcompat).</p>
  
  <p>My activity extends <code>ActionBarActivity</code> and in <code>onCreate</code> it requests window feature <code>supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);</code> (before setting content).</p>
  
  <p>On my button click I show/hide ProgressBar.</p>
  
  <pre><code>public void onClick(View v) {
      if(v.getId() == R.id.buttonProgress) {
  
          if(progress) {
              setProgressBarIndeterminateVisibility(false);
              progress = false;
          } else {
              setProgressBarIndeterminateVisibility(true);
              progress = true;
          }
  
      }
  }
  </code></pre>
  
  <p>This code works fine on android API higher than 11. But I have proglem with API lower than 11. The ProgressBar is not showing up. There is no error in LogCat.</p>
  
  <p>I have noticed that when I show ProgressBar in <code>onCreate</code> it works. I also can hide it from <code>onCreate</code>.</p>
  
  <p>Do you have solution for this problem?</p>
  
  <p>Thank you!</p>