item is separate layout file there are some controls after data loading is complete How to obtain the specified item back to the controls and take the child controls assigned to it? This process should be completed in the program does not require the user to click a specific item.
Get a long time to no avail ah .....
Reply:
gone off the grindstone
Reply:
I do not understand the specific meaning, in the end what is the problem?
Reply:
Create a new thread, with updated data handler processing
Reply:
ListAdapter adapter = new SimpleAdapter (this, getData (),
R.layout.yuyue_list_view, new String [] {"name", "beizhu",
"Phone"}, new int [] {R.id.name, R.id.beizhu,
R.id.phone});
lv.setAdapter (adapter);
getData () where to get the data type is a List & lt; Map & lt; String, Object & gt; & gt ;, behind the argument is that you the corresponding layout, then followed String array place for you to fill into the data Map corresponding key, then followed It is to put the components corresponding id
Reply:
You add in the data should be used in listView subclass BaseAdapter, that is certain adapter
And the item in the ListView control and data are linked by a BaseAdapter
in getView () implementationsSome simple examples which do not override this method, and the more complex item layout requires you to inherit BaseAdapter,
Then getView () method to go to achieve, and then the specific code that you can go online to look for
Reply:
listView.getChildAt (position) .invalidate ();
Reply:
I also worry the ........................................
Reply:
Can write an adapter to inherit baseadapter, the view inside the adapter you need to save it with an array of on ok
Reply:
First, if getView realization of the words,
It is simply
adapter.setYourData (data);
adapter.notifyDataSetChanged ();
In this case all data will be in accordance with rules set getView to members in your item view.
Reply:
Refresh, not enough
Reply:
TextView tv = (TextView) lv.getChildAt (0) .findViewById (R.id.friend_msgNum_tv);
tv.setText ("hahahha");
Reply:
11 floor that is right, very good
No comments:
Post a Comment