I have a refreshing problems for a AutoCompleteTextView. I set the
Adapter as shown below:

ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                 android.R.layout.simple_dropdown_item_1line, getmylist
());
         AutoCompleteTextView textView = (AutoCompleteTextView)
                 findViewById(R.id.my_list);
         textView.setAdapter(adapter);


getmylist() returns an ArraList<String> that changes its values during
the application's lifetime, but after every change I invoke the

adapter.notifyDataSetChanged();

but the drop-down-view doesn't refresh. I worked with others
ArrayAdapter in the same way, using ListViews, without problems...
debugging the application I noticed that the properties mObjects of
thenArrayAdapter is cleared even if the associated ArrayList has
elements, and then properties mOriginalValues is filled with the
Strings loaded the first time. This way my drop-down-view isn't
dynamic, but shows always its initial values...
Where am I wrong?
thank's..
Best Regards,
JKrapp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to