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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:57:02+00:00 2026-05-24T01:57:02+00:00

I am building a application with to do checklist in it. In this is

  • 0

I am building a application with to do checklist in it. In this is want to have a simple list view but with editable Edit text in it. I am able to populate the list with the initial values. How ever when i enter text into the edit text, somewhere in between the getview gets called from the adapter and the list view refreshes itself. I tried a round about where i keep updating the data source as and when I am typing in the edit text. Now the value is saved even after refresh. But the problem is that I keep entering the text and in between the list refreshes and i loose the focus from the edit text. Please let me know how to deal with this issue. Thank you for any kind of help and advice.

  • 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-24T01:57:02+00:00Added an answer on May 24, 2026 at 1:57 am

    You’re going to need to track the state of your list. I did this by extending the adapter and keeping a HashMap of all of the views in my adapter. In my ListView, in onSaveInstanceState, I would get my adapter and iterate all of the views – for each view, I’d call onSaveInstanceState and store the result in my adapter’s hashmap. Then, during onRestoreInstanceState, I would iterate all of the views and invoke their onRestoreInstanceState method, passing them the state I’d saved.

    This should result in solving both your data and your focus issue…

    Good luck – happy coding.

    B

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

Sidebar

Related Questions

I'm building application with GWT + GAE on my MAC. In this app i
Unlike this question: Linker Error while building application using Boost Asio in Visual Studio
I'm working on a student project team building application. I'm familiar with optimization but
I am building web application using Spring MVC Spring Security Hibenate MySQl I want
I have application building using third party apis, j2me apis,application code distributed in various
I'm using this script for building application from command line: #!/bin/bash TARGET=signtest CONFIGURATION=Debug SDK=iphoneos
Building an application to calculate metrics on Service Level Agreements. I have access to
I am beginner in C# programming. I have encountered small problem during building application
The Application I am building an application which includes a range selector. This consists
Whats the best way to implement this. I am building application that will be

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.