adnan1146 wrote:plusminus wrote:Hey lordhong,
Nice upgrade =)
You could try to loop through all Views at the end of the onCreate()-method and invalidate(); them. Like:Using java Syntax Highlighting
// <img src="http://www.anddev.org/images/smilies/icon_exclaim.gif" alt=":!:" title="Exclamation" /> Brain to Code - NOT TESTED <img src="http://www.anddev.org/images/smilies/icon_exclaim.gif" alt=":!:" title="Exclamation" /> public void onCreate(Bundle icicle) { super.onCreate(icicle); ImageItemArrayAdapter adapter = new ImageItemArrayAdapter(this); Resources res = this.getResources(); // add one items adapter.addItem(new ImageItem("Home", res.getDrawable(R.drawable.sliderhouse), true)); // add some more items... // ... setListAdapter(adapter); for(int i = 0; i < adapter.getCount(); i++){ adapter.getView(i, null, null).invalidate(); } }Parsed in 0.033 seconds, using GeSHi 1.0.8.4
Let us know if it worked.
I'll have a closer look at it, when I'm back home from university.
Regards,
plusminus
Hi plusminus
I have also modified the iconified list to have few checkboxes,text views and imagesviews, but I am facing the similar problem of list refresh after performing some action. If you could help in this regard, and write some code to refresh the list.
I also tried the code you written before using invalidate();
I also modified the iconified list which has few checkboxes loading their state( checked/unchecked) from a database and its working fine with refresh after any update etc..
I am able to refresh the list after some update by sending another query to the data base and setting the list adapter with the new data.







Anyone have the solution by hand ?
