Wednesday, April 23, 2014

AdapterView.OnItemClickListener how to get the contents of that one click


For example,
Each row in a ListView first column is the date,
Can you click on this line,
The first column of the line obtained on a date?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
 public void onItemClick (AdapterView  arg0, View arg1, int arg2, 
long arg3) {
Adapter adapter = arg0.getAdapter ();
Map map = (Map ) adapter.getItem (arg2);


ListView.setAdapter (SimpleAdapter);
Much explanation, I believe the landlord may have understood
Reply:
Do not understand. . . . .

No comments:

Post a Comment