예제 #1
0
 public void searchResultsLoaded(LoadSearchResults results) {
   ArrayList<SearchResult> searchResults = results.searchResults;
   listAdapter = new SearchResultListAdapter(this, searchResults);
   setListAdapter(listAdapter);
   setProgressBarIndeterminateVisibility(false);
   progressDialog.dismiss();
   listAdapter.forceReload();
 }
예제 #2
0
 @Override
 protected void onListItemClick(ListView l, View v, int position, long id) {
   super.onListItemClick(l, v, position, id);
   SearchResult result = listAdapter.getItem(position);
   if (null != result) {
     SBAApplication.setSearchResult(result);
     //			Intent intent = new Intent(this, SBASitesActivity.class);
     //			intent.putExtra(SEARCH_RESULT, result);
     //			startActivity(intent);
   }
   finish();
 }