Beispiel #1
0
 public void setSearch(ArrayList<AccountManager.Account> result) {
   mAdapter =
       new MainListAdapter(
           getActivity(), result, Application.getThemedIcons(), R.drawable.pb_unknown);
   mAdapter.enableAnimation(false);
   mAdapter.setListener(this);
   mListView.setAdapter(mAdapter);
   mAdapter.notifyDataSetChanged();
   mToBeRemoved = new int[mAdapter.getCount()];
   ((TextView) mListView.getEmptyView()).setText(R.string.empty_search);
 }