[android-developers] Re: Modify a textview value in a custom listview after clicking

2012-03-27 Thread Deep
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

Re: [android-developers] Re: Modify a textview value in a custom listview after clicking

2012-03-27 Thread Justin Anderson
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

[android-developers] Re: Modify a textview value in a custom listview after clicking

2012-03-26 Thread Jason Tian
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

[android-developers] Re: Modify a textview value in a custom listview after clicking

2012-03-26 Thread Danny D
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

Re: [android-developers] Re: Modify a textview value in a custom listview after clicking

2012-03-26 Thread Justin Anderson
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