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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:35:54+00:00 2026-05-27T12:35:54+00:00

I have a listview with one textview and a button in each row. Button

  • 0

I have a listview with one textview and a button in each row. Button background is setting using some conditions. If i have number of rows in list and scrolled, the button background get shuffling. That means on scrolling wrong background is setting as button background. How can i resolve this issue? My adapter class is as shown below:

    public View getView(int position, View convertView, ViewGroup parent) {
    final PhotoCondtionthreeItemView item;
    Photo place = (Photo) getItem(position);

    if (convertView != null) {
        item = (PhotoCondtionthreeItemView) convertView;
    } else {
        item = new PhotoCondtionthreeItemView(context, place,
                membershipSign);
    }

    item.setShareTag(place.getLink()+"@@@"+place.getServerPhotoId());

    item.setBaseLayoutTag(place.getLink() + "@@@"
            + place.getServerPhotoId() + "@@@" + place.getIsGallery()
            + "@@@" + place.getId());
    File file;
    try {
        file = new File(place.getLink());
        if (file.exists()) {
            if (cache.containsKey(place.getLink())) {
                item.setThumbImg(cache.get(place.getLink()));
            } else {
                Bitmap bitmap = BitmapResizer.decodeFile(file, 50, 50);
                item.setThumbImg(bitmap);
                cache.put(place.getLink(), bitmap);
            }
        } else {
            item.setThumbImgMissing();
        }

    } catch (Exception e) {
        Log.e("PhotoCondThree ERROR", e.toString());
    }

    return item;
}

In PhotoCondtionthreeItemView class created the row for list. (not used xml for list row).

can anyone help me?

Thank you

  • 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-27T12:35:55+00:00Added an answer on May 27, 2026 at 12:35 pm

    call yourListViewadapter.notifyDataSetChanged() when data is changed

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

Sidebar

Related Questions

I have ListView which as one TextView in each Row. and im discovering some
I have created listview using layoutinflator. Listview contains checkbox and textview for each row.
I have a ListView with some elements on it. Each row has a TextView
I have a listview with custom rows and that extends SimpleAdapter. Each row consist
My ListView (two TextView , one Icon) have more than 4000 rows and It
I currently have a custom listview with two rows of text in each item,
I have one listview.which contain one image ,text and one button .i had creted
I have a ListView subclass that display rows that each contain an EditText and
I have a custom listView with a textView, editText and a Button on a
I have a ListView on one of the windows project using c#. One of

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.