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 9193945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:17:08+00:00 2026-06-17T21:17:08+00:00

I have a ListView with a row of items, where each row contains a

  • 0

I have a ListView with a row of items, where each row contains a SeekBar and TextView. Whenever I move any of the SeekBar‘s I need to have all the TextView‘s in the ListView updated live, without losing focus on the SeekBar.

I have tried to

  • call notifyDataSetChanged() on the ListView, but the
    SeekBar loses focus.

  • loop through the ListView with the following code:

for (int i = 0; i < listView.getChildCount(); i++)
{
TextView tv = (TextView) listView.getChildAt(i).findViewById(R.id.textView1);
String value = getData();
tv.setText(value);
}

However, the code above doesn’t give a persistent update to the ListView, which is a problem if the user scrolls.

Any suggestions how to deal with this problem?

  • 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-17T21:17:09+00:00Added an answer on June 17, 2026 at 9:17 pm

    Whenever I move any of the SeekBar’s I need to have all the TextView’s
    in the ListView updated live, without losing focus on the SeekBar.

    What you want to do is updating the data list of the adapter without calling notifyDataSetChanged() and then also update the TextViews from the currently visible rows.

    //...
    @Override
    public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
        // found is a reference to the ListView    
        int firstVisible = found.getFirstVisiblePosition();
        // first update the mData which backs the adapter               
        for (int i = 0; i < mData.size(); i++) {
              // update update update   
        }
        // update the visible rows
        for (int j = 0; j < found.getChildCount(); j++) {
               final View row = found.getChildAt(j);
               // get the position from the mData by offseting j with the firstVisible position
           ((TextView) row.findViewById(R.id.theIdOfTheTextView)).setText(mData.get(firstVisible + j));
        }
    }
    //...
    

    This should offer you a smooth update.

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

Sidebar

Related Questions

I have created listview using layoutinflator. Listview contains checkbox and textview for each row.
I have a ListView with some items. I have toggleButton in each row of
I have a ListView with an EditText on each row working. I need to
Hallo all, I have a ListView which contains a Button in each line. The
I have a custom listview row that contains a number of textView components. Instead
I have a listView using a custom adapter. Each row contains a button and
I have a listview which contains maybe 15 rows. Each row (list item) contains
I have a ListView and each row has an ImageView. These Images are downloaded
I have a listview with custom row having a textview and a clickable image
I have a ListView, each row have an ImageView to load a small icon.

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.