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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:16:10+00:00 2026-05-24T04:16:10+00:00

Well it seem i am having quite some trouble with my arrayadapter of strings.

  • 0

Well it seem i am having quite some trouble with my arrayadapter of strings. It seem there is no real way to only modify an item in the list. I had to delete and insert back the string to see changes appears. So my question is Why is the ArrayAdapter doesn’t have the set method like arraylist do ? Why it do not have any easy way to change an element in the list ? In order to change an element is is an option to create a custom adapter based on BaseAdapter ?

  • 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-24T04:16:11+00:00Added an answer on May 24, 2026 at 4:16 am

    lets see this sample code:

    ArrayList<String> items = new ArrayList<String>();
    
    MyAdapter myAdapter = new MyAdapter(items, context);
    

    you can modify an item using:

    // items.set(index,object);

    items.set(0,"Hello New Value");
    
    myadapter.notifyDataSetChanged();// to tell the adapter there's new values has been changed
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I seem to be having some problems with dbExpress in Delphi XE2. When I
I can't seem to find an answer to this anywhere. It's well known that
I've debugged my program and the arrays seem to be allocated well. However for
If you're familiar with the phrase build one to throw away, well, we seem
Well the subject is the question basically. Are there any version control systems out
Well, it seems simple enough, but I can't find a way to add a
I've been having quite a few problems trying to use Microsoft.SqlServer.Types.SqlGeography . I know
I seem to be having an issue with Xalan's translate method. I have the
I am having a strange problem and I can't seem to figure it out.
Sometimes I seem to be quite inefficient. When I was nearly finished typing this,

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.