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

  • SEARCH
  • Home
  • 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 6929883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:22:30+00:00 2026-05-27T11:22:30+00:00

I am using the stock SeekBar component to navigate through a set of ViewPagers

  • 0

I am using the stock SeekBar component to navigate through a set of ViewPagers and it’s working quite fine. Only problem is that when the data changes, I have to dynamically change the max value of the SeekBar via setMax(int value). When I do that, the SeekBar does not get updated until I navigate to a new page. I have a hacky fix in place where I do this, to force a onProgressChanged:

seekBarVP.setProgress(focusedPage+1);
seekBarVP.setProgress(focusedPage-1);
seekBarVP.setProgress(focusedPage);

Is there a better way to do this?

  • 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-05-27T11:22:31+00:00Added an answer on May 27, 2026 at 11:22 am

    The Question is some months old now but I’ll answer anyway because searching for this problem brought me here.

    Answer is there is actually a bug in Android. It seems to be fixed on my 3.2.1 tablet but the bug is present on my 2.3.6 phone. The bug is in the ProgressBar widget which is a parent of the SeekBar class. Your solution to setting the progress to a bogus value and back is so far the easies workaround I could find.

    You will find more detailed information about this bug here:
    android progressBar does not update progress view/drawable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to download share data from a stock exchange using python. The problem
I'm using stock Asp.net membership with built in Login controls, etc. Problem is that
I'm using Nexus S Android 2.3 stock version. Whenever I'm trying to set the
i an displaying live stock quotes using $data = file_get_contents(http://quote.yahoo.com/d/quotes.csv?s=$symbol&f=sl1d1t1c1ohgv&e=.csv); but i am using
I'm using JPA2/hibernate with this data model: class Stock { @ManyToOne private StockGroup stockGroup;
I have daily stock data as an HDF5 file created using PyTables. I would
I'm working on an assignment where I retrieve several stock prices from online, using
I am using Delphi 2010 with only the stock standard VCL libraries. The target
Using stock TomEE+, I cannot get a simple JAX-RS resource to work. I constantly
Using the stock Sun 1.6 compiler and JRE/JIT, is it a good idea to

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.