Hi Jason,
If you have to change view which is already displayed and you have
data in your adapter which you have to display then, On List item
click you will get the view of clicked
position adapter view and you can change what ever you want in that
adapter view.
Thanks Regards,
Deepchand Singh
If you have to change view which is already displayed and you have
data in your adapter which you have to display then, On List item
click you will get the view of clicked
position adapter view and you can change what ever you want in that
adapter view.
Just because you CAN do something
Hi, Justin
May I ask why we shouldn't modify the view after it has been
displayed?
Cause I've been doing this a lot in my app...
Thanks,
Jason
On Mar 26, 9:12 am, Justin Anderson magouyaw...@gmail.com wrote:
Modify the data in the adapter and then call notifyDataSetChanged(). Once
the view
Does the no modification rule apply to moving the views around?
I've got a ListView object, where I'm using the TouchListView.java
adaption to allow the user to resort the items
Does this movement qualify as a modification? I'm performing data
changes within the Adapter, but the actual view
May I ask why we shouldn't modify the view after it has been displayed?
Certainly... It is pretty much a basic principle for good OO design. Your
adapter represents the data that needs to be displayed. Your listview item
views should do nothing more than use the data it has to decide how it
5 matches
Mail list logo