public void showList(List<ItemChooserRow> list){
  mProgressBar.setVisibility(View.GONE);
  mStatus.setText(mLabels.mStatus);
  if (list.isEmpty()) {
    boolean showEmptyMessage=mItemAdapter.isEmpty();
    mNotFoundMessage.setVisibility(showEmptyMessage ? View.VISIBLE : View.GONE);
    mListView.setVisibility(showEmptyMessage ? View.GONE : View.VISIBLE);
  }
 else {
    mListView.setVisibility(View.VISIBLE);
    mItemAdapter.addAll(list);
  }
}

public void showList ( List < ItemChooserRow > list ) { mProgressBar . setVisibility ( View . GONE ) ; mStatus . setText ( mLabels . mStatus ) ; if ( list . isEmpty ( ) ) { boolean showEmptyMessage = mItemAdapter . isEmpty ( ) ; mNotFoundMessage . setVisibility ( showEmptyMessage ? View . VISIBLE : View . GONE ) ; mListView . setVisibility ( showEmptyMessage ? View . GONE : View . VISIBLE ) ; } else { mListView . setVisibility ( View . VISIBLE ) ; mItemAdapter . addAll ( list ) ; } }
add items to show in the dialog .
