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 items are getting moved through the touch interface / view code. DD On Mar 25, 11:29 pm, Jason Tian <[email protected]> wrote: > 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 <[email protected]> wrote: > > > > > > > > > Modify the data in the adapter and then call notifyDataSetChanged(). Once > > the view has been created and displayed on the screen you should NEVER > > modify it directly. > > > Thanks, > > Justin Anderson > > MagouyaWare Developerhttp://sites.google.com/site/magouyaware > > > On Sat, Mar 24, 2012 at 5:44 AM, Akram <[email protected]> wrote: > > > This listview has an adapter that is linked to a layout for each row > > > (itemrow.xml) > > > > The price value (500-250 300) is a textview > > > > How can we access to it, to modify it, once clicked on a button ? > > > > Thanks you for the help. > > > > lllllllllllllllllllllllllllllllll > > > > Android > > > > Price: 500 > > > > lllllllllllllllllllllllllllllllll > > > > Php > > > > Price: 250 > > > > lllllllllllllllllllllllllllllllll > > > > C++ > > > > Price: 300 > > > > lllllllllllllllllllllllllllllllll > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected] > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

