Just beginning to learn Android. . In writing a ListView
There is probably a list of roughly information. . Click on an item after entering an information details Activity.
The weak residue data into a List <> in order to display the ListView.
But writing onItemClick (AdapterView Parent, View view, int position, long id) when I do not know how to write ==
I do not know how to get what I want, just a message from the List <> in. .
At the same time how to get to the intent to write the contents inside the Activity in the details after
Great God seeking help. .
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Object data_item = data.get (position);
Reply:
Blessings, that at the time on the extra pass inside with no need to convert it into a String type
If converted. How in later Activity in the reversed type my custom. .
Reply:
< br />It depends on your List
Reply:
Is to write an entity class ==
Reply:
is to write an entity class ==
Model implements Serializable
Reply:
http://blog.csdn.net/xyz_lmn/article/details/5908355
Reply:
http://blog.csdn.net/xyz_lmn/article/details/5908355
Thank you, thank you very useful ~ ~
Reply:
New End Adapter, the Adapter settings to list
Reply:
New End Adapter, the Adapter is set to list, click on which one item, you can use list.get ( postion). taken to click on the corresponding data. And then passed out.
Thank you ~ ~ have been resolved
No comments:
Post a Comment