Solved

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

Posted on 2012-12-31
4
454 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
android: how can i send queued outbox unsent gmail 4 283
Eclipse with various Java releases 7 89
Jail break Samsung Galaxy S8 phone 3 87
Droid 5 5 17
This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

751 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