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

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -