public void updateDoneText(ArrayList<String> resultList){
  if (menuItemDone == null || resultList == null) {
    return;
  }
  menuItemDone.setVisible(resultList.size() > 0);
  menuItemDone.setTitle(getString(R.string.action_button_string,getString(R.string.action_done),resultList.size(),mDefaultCount));
}

public void updateDoneText ( ArrayList < String > resultList ) { if ( menuItemDone == null || resultList == null ) { return ; } menuItemDone . setVisible ( resultList . size ( ) > 0 ) ; menuItemDone . setTitle ( getString ( R . string . action_button_string , getString ( R . string . action_done ) , resultList . size ( ) , mDefaultCount ) ) ; }
update done button by select image data
