private void invalidateAllViews() { myThisBookView.invalidateViews(); myThisBookView.requestLayout(); myAllBooksView.invalidateViews(); myAllBooksView.requestLayout(); if (mySearchResultsView != null) { mySearchResultsView.invalidateViews(); mySearchResultsView.requestLayout(); } }
void showSearchResultsTab(LinkedList<Bookmark> results) { if (mySearchResultsView == null) { mySearchResultsView = createTab("searchResults", R.id.search_results); new BookmarksAdapter(mySearchResultsView, mySearchResults, false); } else { mySearchResults.clear(); } mySearchResults.addAll(results); mySearchResultsView.invalidateViews(); mySearchResultsView.requestLayout(); getTabHost().setCurrentTabByTag("searchResults"); }