From 0c7865002753aea5de117ea4c08043dca95d07b6 Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Tue, 4 Aug 2009 16:04:55 -0400 Subject: Updates for the look of the bookmarks page. Add new assets. -tab_indicator.xml State selector for the background of tabs in the CombinedHistoryActivity -bookmark_thumnail.xml Web page title is now above the thumb. Removed the favicon. Added a shadow. -tab_header.xml Layout for the tabs in CombinedHistoryActivity -tabs.xml Change the height of the tabs. -bookmarks.xml Remove the title for the "switch" menu item, which gets set in Java, depending on the current viewing mode. -strings.xml Remove the placeholder menu item text, add the actual text for switching between modes. -BrowserBookmarksAdapter No longer set the favicon on top of the bookmark thumbs in grid mode. -BrowserBookmarksPage Implement onPrepareOptionsMenu, and set the title of a menu option, depending on the current viewing state. -CombinedHistoryActivity Create a common function for setting up all the tabs. Change the look of the tabs to match the new design. --- src/com/android/browser/BrowserBookmarksAdapter.java | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/com/android/browser/BrowserBookmarksAdapter.java') diff --git a/src/com/android/browser/BrowserBookmarksAdapter.java b/src/com/android/browser/BrowserBookmarksAdapter.java index 75be45b..764daea 100644 --- a/src/com/android/browser/BrowserBookmarksAdapter.java +++ b/src/com/android/browser/BrowserBookmarksAdapter.java @@ -368,13 +368,11 @@ class BrowserBookmarksAdapter extends BaseAdapter { } View holder = convertView.findViewById(R.id.holder); ImageView thumb = (ImageView) convertView.findViewById(R.id.thumb); - ImageView fav = (ImageView) convertView.findViewById(R.id.fav); TextView tv = (TextView) convertView.findViewById(R.id.label); if (0 == position && !mCreateShortcut) { // This is to create a bookmark for the current page. holder.setVisibility(View.VISIBLE); - fav.setVisibility(View.GONE); tv.setText(mCurrentTitle); // FIXME: Want to show the screenshot of the current page thumb.setImageResource(R.drawable.blank); @@ -393,15 +391,6 @@ class BrowserBookmarksAdapter extends BaseAdapter { thumb.setImageBitmap( BitmapFactory.decodeByteArray(data, 0, data.length)); } - // Now show the favicon - data = mCursor.getBlob(Browser.HISTORY_PROJECTION_FAVICON_INDEX); - if (data == null) { - fav.setVisibility(View.GONE); - } else { - fav.setVisibility(View.VISIBLE); - fav.setImageBitmap( - BitmapFactory.decodeByteArray(data, 0, data.length)); - } return convertView; -- cgit v1.1