java - Intermediate Progress doesn't work with ActionBarSherlock running on Gingerbread -


I set up ActionBarSherlock with my app, and I'm trying to use intermediate progress, I use it I am doing this: Request Vendor (window. FEATURE_INDETERMINATE_PROGRESS); SetSupportProgressBarIndeterminateVisibility (false);

In my on-site, and then use:

  setSupportProgressBarIndeterminateVisibility (true);   

to enable it

It works fine in the ICS but it does not work at gingerbread or phoroya, does anyone do the work How to know? Thank you

I had the same problem Jake's solution did not fix this for me - the method is undefined.

  • I found a working solution here posted by Jake on the Bug List for ActionBarSherlock:

    for the poster See Jake's reaction. - Call to move call getSupportActionBar () First,

    to create "Trigger of views" then my onCreate () method is:

      Crate on protected void (bundle arg 0) {super. Connet (Arg0); // Allow the window to show progress spinner in action bar request. WindowFeature (window.FEATURE_INDETERMINATE_PROGRESS); GetSupportActionBar (); SetSupportProgressBarIndeterminateVisibility (false); }   

    Updates based on comments from the locks:

    Ensure your import reflects com.actionbarsherlock. View The window to work for. FEATURE_INDETERMINATE_PROGRESS .

    Here is a part of my import block from the app using this method:

      import com.actionbarsherlock.app.ActionBar ; Import com.actionbarsherlock.app.SherlockActivity; Import com.actionbarsherlock.view.ActionProvider; Import com.actionbarsherlock.view.Menu; Import com.actionbarsherlock.view.MenuItem; Import com.actionbarsherlock.view.Window; Import com.actionbarsherlock.widget.ShareActionProvider;   

    It is a good thing to remember when working with ABS - instead of updating many of your normal Android imports, ABS should be referred to.

    It may be a good idea to retrieve the import block, or possibly delete it altogether, and Eclipse should rebuild (CTRL-Shift-O) for you, which will give point to each eclipse. Micro ABS Redeclares.

    This was also explained by Glebb.

Comments