Tuesday, February 11, 2014
Android listview problem, the students do the project, problems encountered point, seeking to explain.
Background question:
Three Activity, respectively 1,2,3.
1,2 is the listview. 3, is textview. Listview 1 show that 30 illnesses, when I click on any one item will jump to 2,
2 is a listview, the display is based on a name corresponding to the condition of food (ie to show what he is made of what conditions you click on one of the decision, and two each in only one listview just replaced listview in the data), I realized by tracking position.
Problem Description: Click on the name you want to achieve 2 food jumps to 3 to display the description of the thing. How to achieve this need? ? ?
(Binding position can no longer be displayed because, listview before the itme is fixed, while the two in the food listview is not fixed, it will change according to a change in the click.)
ps: a bit confusing, but in general is so, we help solve next, thank you.
Reply:
Search about: Custom ListView adapter and monitor controls to achieve
http://blog.csdn.net/zhangxing555/article/details/8793099
For each listitem add an event, click the update data after Kazakhstan
Reply:
Although the data 2 will change, but it will not affect the position corresponding ListView get data ah, you are not wrong ah
Reply:
I found a solution but still thank you to answer
Reply:
I found a solution but still thank you for your answer
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment