Code example for Vector

Methods: elementAt, setElementAt

0
                        mImage_bs.setElementAt(!mImage_bs.elementAt(position), position);     //Ö±½ÓÈ¡·´¼´¿É            
                }     
                // µ¥Ñ¡Ê±     
                else{                                                  
                        if(lastPosition != -1)    
                                mImage_bs.setElementAt(false, lastPosition);        //È¡ÏûÉÏÒ»´ÎµÄÑ¡ÖÐ״̬    
                        mImage_bs.setElementAt(!mImage_bs.elementAt(position), position);     //Ö±½ÓÈ¡·´¼´¿É    
                        lastPosition = position;                //¼Ç¼±¾´ÎÑ¡ÖеÄλÖà    
                }     
                notifyDataSetChanged();         //֪ͨÊÊÅäÆ÷½øÐиüР   
        }     
}