johannilsson / android-actionbar

DEPRECATED Android Action Bar Implementation
1.31k stars 564 forks source link

Indeterminate progress bar #10

Closed JakeWharton closed 13 years ago

JakeWharton commented 13 years ago

Adds a right-aligned indeterminate progress bar to the title section of the ActionBar.

The example application has been updated to demonstrate this functionality on the home activity.

johannilsson commented 13 years ago

Thank you! Looks really good! I've just pushed this to master. I've made some small changes though. Added a separate style for the progress bar that makes it easier to override the default style. Changed the api for setting the visibility to make it more consistent with the Android api. I would prefer to set it as true or false but I think it makes more sense to follow what Android does.

Thanks again.

necronet commented 12 years ago

Is there a way that the progress can appear at the right of the component I mean currently displayed at right but before the items button. Is there a way i can set it up to layout_alignParentRight="true" ?

johannilsson commented 12 years ago

Currently there's no way to do this. If you running the mimic api branch you can create a custom view for an action that mimics this behavior it's a bit more work though.