× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Android ActionBarActivity: ProgressBar in Gingerbread not showing up

Lorenzo Stanco
Feb 11, 2015
<p>Change your <code>onCreate()</code> to call support methods instead of standard ones, as:</p> <pre><code>supportRequestWindowFeature(Window.FEATURE_PROGRESS); supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.activity_main); setSupportProgressBarIndeterminate(true); </code></pre> <p>And also when you want to display the progress:</p> <pre><code>getActivity().setSupportProgressBarVisibility(false); </code></pre> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/22777301/Android%20ActionBarActivity:%20ProgressBar%20in%20Gingerbread%20not%20showing%20up/22805901">Stack Overflow</a>.</p>
comments powered by Disqus