Saturday, April 2, 2011

[android-developers] Re: Disable a particular row in list view onCreate

lists work differently. The process of creating a list cell (and re-using it) is de-coupled from the process of updating it. The "disabling" needs to be done in the updating part. So when Android asks you to give it this particular cell so it can display it you could either try to return null (that might backfire) or set the cell's height to zero.

Of course you could disable touch events and key events for that cell but as I said before that is bad UI karma.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate