android - Listview : enable in adapter if view is enabled -
my listview
populate custom cells , custom adapter.
if cell disabled, want set isenabled()
false in adapter :
@override public boolean isenabled(int position) { // if cell disabled, return false. if not return true }
but cell don't know adapter. there way current cell object in isenabled()
method ?
you make use of getitem(position) , use postition in overriden method, assuming have overrided getitem in adapter.
Comments
Post a Comment