I am trying to replicate the experience found when you are uninstalling an app in ICS. Specifically the indeterminate progress indicator under the title bar. I have tried using requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS) and the various methods on Activity but to no avail. It instead shows a spinning progress bar in the top right hand corner of the screen/title bar. Am I missing something simple here? Or is this completely custom?
Here is the code I am using:
@Override
protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
super.onCreate(savedInstanceState);
setProgressBarIndeterminate(true);
setProgressBarIndeterminateVisibility(true);
}

You are using the
ActionBarindeterminate progress bar, but you are looking for aProgressBarView.You can create the
Viewprogrammatically or add it to a layout file like —Typically, you can decide when it is shown by calling
.setVisibility(View.VISIBLE)to show and.setVisibility(View.GONE)when you are done.If you have a minimum API of 11 and set your activity or app theme to
@android:style/Theme.Holoyou will get exactly thatProgressBarshown in your image.If you want a similar effect on pre-API 11 devices, check out HoloEverywhere