Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8056151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:37:11+00:00 2026-06-05T08:37:11+00:00

How to show Indeterminate ProgressBar when Refresh button is pressed in ActionBarSherlock and again

  • 0

How to show Indeterminate ProgressBar when Refresh button is pressed in ActionBarSherlock and again show Refresh Button when ViewGroup on refreshed?

Update 1:
I have a answer here which is incomplete. I am placing a bounty on question so that more developers can help build a good answer which can useful to others in future.

How can we show a Indeterminate ProgressBar which looks like the one shown in the image belowenter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:37:12+00:00Added an answer on June 5, 2026 at 8:37 am

    It seems like ActionBarSherlock doesn’t provide specific method to animate a refresh MenuItem.

    What you can do (by using classic android API) is to use the setActionView(int resId) method and give the id of a layout with a ProgressBar in it.

    At the beginning of your refresh action just call :

    item.setActionView(R.layout.refresh_menuitem);
    

    And when your refresh action is finished call :

    item.setActionView(null);
    

    Here is a sample of what your layout file refresh_menuitem.xml can have :

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:addStatesFromChildren="true"
                  android:focusable="true"
                  android:paddingLeft="4dp"
                  android:paddingRight="4dp"
                  android:gravity="center"
                  style="?attr/actionButtonStyle">
        <ProgressBar
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:focusable="true"
                style="@android:style/Widget.ProgressBar.Small"/>
    </LinearLayout> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I curently have the below which displasy a messagebox.show if the results is null.
Show/hide works perfectly fine. I can click #business which opens my menu, click outside
i`m trying to show indeterminate progress bar in ABS v. 4.0.2 by following code
I am using a linear layout. That include an progressbar.xml that show a indicator
In the winforms we have a property called continuous that will show the progress
When loading data into my Fragments I would would like to have an indeterminate
I want to show a ProgressBar inside a normal jface Dialog at the start
To show an example what is this question about: I have currently a dilemma
Browser: Google Chrome V19.0.1084.52 I have a textbox which needs to be a number
show grants for charm@'localhost'; ---------------------+ | Grants for charm@localhost | +-----------------------------------------------------------------------------------------------------------------+ | GRANT USAGE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.