Solved

Clicking on-screen keyboard DONE button doesn't update ListView immediately?

Posted on 2012-12-31
4
441 Views
Last Modified: 2013-01-06
Hi Experts,

Can you please help me understand this situation? Specifically I am curious about updating a ListView after editing a list item using an AlertDialog.

My application is very simple. I am editing the text in a ListView item using the AlertDialog to show edit form. The edit form consists of a single textbox. Once edited I click the save button.

When running the emulator the on-screen keyboard shows so I can type (as you expect). If I click the "Done" button on the Emulator keyboard, the keyboard goes away (Scrolling down off bottom of screen). After the keyboard disappears I click my "Save" button to save the changes. When the Done button is clicked and keyboard disappears, the edit doesnt take place as it should (or as I expect it to).

In the other case, If i do not press the "Done" key and leave the onscreen keyboard alone, press my "save" button, the ListView is updated to reflect the change in text.

Does this make sense? Why does the ListView not get updated if I press the done button on the on-screen keyboard prior to saving the change?

Glad to post code if you like. Please advise. Thank you!
0
Comment
Question by:Gregg
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
PCableGuy earned 500 total points
ID: 38735330
Please post some code. Thanks.
0
 
LVL 10

Author Closing Comment

by:Gregg
ID: 38747404
Thanks. Gonna deal with it for now. Not critical at this time.
0
 
LVL 12

Expert Comment

by:PCableGuy
ID: 38748517
OK, thanks for donating the points. Good luck.
0
 
LVL 10

Author Comment

by:Gregg
ID: 38748941
Sure!  I believe the effort was put forth since you were willing to take on the obscure question. As I been working with my project it seems to be fine. Perhaps I needed to clean project or maybe I fixed issue by continuing to work on it. Who knows?  I think it's fine now. :)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
A short article about a problem I had getting the GPS LocationListener working.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now