Code example for SparseBooleanArray

Methods: size

0
    public SparseBooleanArray getCheckStates(){
        return checkState;
    } 
     
    public int getCheckItemCount(){ 
        return checkState.size();
    } 
 
	public int getRealIndex(int position){
		int index;
		if ( reverseOrder )
			index= bookmark.getCount()-1-position;
		else 
			index= position;
		return index;
	} 
	 
	/* (non-Javadoc) 
	 * @see android.widget.Adapter#getCount() 
	 */ 
	@Override