android - désactiver l'élément Listview cliquer et le réactiver

J'ai donc le code suivant dans la carte:

@Override
    public boolean isEnabled(int position) 
    {
         GeneralItem item = super.getItem(position);
         boolean retVal = true;


            if (item != null)
            {
                if (currSection != some_condition)
                retVal = !(item.shouldBeDisabled());
            }
         return retVal;
     }


    public boolean areAllItemsEnabled() 
    {
        return false;
    }

La question ici: Donc, si j'ai désactivé mon point lors de la première liaison, maintenant je relance l'événement sur l'écran et doivent permettre n'importe quoi. Dois-je relier tout cela de nouveau après cette action est effectuée?

par exemple:

onCreate{

//create and bind to adapter
//this will disable items at certain positions 

}

onSomeClick{

I need the same listview with same items available for click no matter what the conditions of positions are, so I need them all enabled. What actions should I call on the adapter? 

}

Le problème est que je peux avoir un très long listview trop. Elle suppose à l'appui de 6000 articles. Afin de reliaison ce n'est certainement pas une option.

Merci,

source d'informationauteur dropsOfJupiter | 2011-04-04