Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Indeterminate progress spinner is visible by default @ non-native action bar #1097

Open
Tobiaqs opened this issue May 7, 2014 · 0 comments

Comments

@Tobiaqs
Copy link

Tobiaqs commented May 7, 2014

After requesting the FEATURE_INDETERMINATE_PROGRESS feature in onCreate, older devices instantly show the spinner, whilst native action bar devices don't.

_Reproduction_

public class Main extends SherlockActivity {
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setContentView(R.layout.test);
  }
}

_Workaround_

public class Main extends SherlockActivity {
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
    setSupportProgressBarIndeterminateVisibility(false); // or true if you want the spinner to be visible by default
    setContentView(R.layout.test);
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant