Tuesday, February 11, 2014

Set item ListView problem! ! ! Urgent


            
The desired effect is that when you click on a particular item, click on it to replace the current line item in the layout, the other unchanged. Is viewgroup it? ? Solving ah! ! ! ! !
Reply:
Before this is
Such
change after clicking
Reply:
You click on that record position, in which getView again to the corresponding position of convertView give your new layout, and then use mAdapter.notifyDataSetChanged () to
Reply:
so sorry.
Reply:
There are two ways to do it. The first is to define the interface into the activity, when the point of the item on for another activity. Of course, this method is not recommended, because each activity is attributable to memory. The second is that this activity in places where you want to change the layout used include control, and then you have to include the layout of the controls in the interface, but this return to a bit of trouble, press the rewind is not retreat back to the original interface, have an additional one button or item event to handle the return event
Reply:
Reference: http://bbs.csdn.net/topics/390653463?page=1 # post-396189586
My reply to it
Reply:
reference to the second floor jy00747195 reply:
record you click on that position, in which getView again to the corresponding position of convertView give your new layout, then use mAdapter . notifyDataSetChanged () to

Can paste code snippets? Or, more elaborate ah, thank! ! !
Reply:
reference to the 6th floor tianwangjay reply:
Quote: references to the second floor jy00747195 reply:

You click on that record position, in which getView again to the corresponding position of convertView give your new layout, and then use mAdapter.notifyDataSetChanged () to

Can paste code snippets? Or, more elaborate ah, thank! ! !

To the corresponding position of convertView give you a new layout? ?
Reply:
The problem has been resolved, Results posted! !

No comments:

Post a Comment