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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:58:21+00:00 2026-06-03T02:58:21+00:00

How to change text in edit text which is embedded in a list view.

  • 0

How to change text in edit text which is embedded in a list view. i want to the change the text’s value on button click

holder.txtQty.setTag(position);
    holder.plus.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            // TODO Auto-generated method stub

            String val = holder.txtQty.getText().toString();
            Float f = new Float(val);
            f = f + 1;
            holder.txtQty.setText(f.toString().replace(".0", "").trim());
        }
    });

but on this only the first and last rows edit text change . i need the corresponding edit text to change

  • 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-03T02:58:22+00:00Added an answer on June 3, 2026 at 2:58 am

    I would get the position in the list of the text you wish to change, write a public method to replace the content at that position and then notify the custom adapter that the data set has changed.

    For example:

    public void replaceItemAt(int position, String newText)
    {
        //Replace the item in the array list
        this.textfieldarraylist.set(position, newText);
        //Let the custom adapter know it needs to refresh the view
        this.notifyDataSetChanged();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to implement search bar in my application which will filter list view
I'm trying to programatically change the text of an edit control in a 'Save
Now what I'm trying to do is to change/edit the text of a paragraph
EDIT: After feedback from my original post, I've change the text to clarify my
my Problem is that I have an asp text box which has a value
I'm using an edit page for my user to view and change their data
I am trying to edit the same text (which I have stored in a
I'm currently trying to show a score which requires the text to change dynamically
I'm try to change text color and align item in spinner to center of
I'm curious is it possible to change text properties of tick labels independently 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.