diff options
author | Leon Scroggins <scroggo@google.com> | 2009-09-25 13:01:45 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2009-09-25 13:01:45 -0400 |
commit | fdd10d7a80ccd7b90d011fbe40f56f1ac2006594 (patch) | |
tree | d6870e25b062cdcab66a8507cd3ad0409350c42a | |
parent | f85516172840450a4d1270b658905dc1649ceaf2 (diff) | |
download | packages_apps_Browser-fdd10d7a80ccd7b90d011fbe40f56f1ac2006594.zip packages_apps_Browser-fdd10d7a80ccd7b90d011fbe40f56f1ac2006594.tar.gz packages_apps_Browser-fdd10d7a80ccd7b90d011fbe40f56f1ac2006594.tar.bz2 |
Use new assets for list view and thumbnail view.
Change-Id: I5a5395c6d64cd71f3af404dc049d89c66dea613b
-rw-r--r-- | res/drawable-hdpi/ic_menu_list.png | bin | 0 -> 872 bytes | |||
-rw-r--r-- | res/drawable-hdpi/ic_menu_thumbnail.png | bin | 0 -> 996 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_menu_list.png | bin | 0 -> 569 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_menu_thumbnail.png | bin | 0 -> 712 bytes | |||
-rw-r--r-- | src/com/android/browser/BrowserBookmarksPage.java | 15 |
5 files changed, 12 insertions, 3 deletions
diff --git a/res/drawable-hdpi/ic_menu_list.png b/res/drawable-hdpi/ic_menu_list.png Binary files differnew file mode 100644 index 0000000..cf95f2f --- /dev/null +++ b/res/drawable-hdpi/ic_menu_list.png diff --git a/res/drawable-hdpi/ic_menu_thumbnail.png b/res/drawable-hdpi/ic_menu_thumbnail.png Binary files differnew file mode 100644 index 0000000..bfc99aa --- /dev/null +++ b/res/drawable-hdpi/ic_menu_thumbnail.png diff --git a/res/drawable-mdpi/ic_menu_list.png b/res/drawable-mdpi/ic_menu_list.png Binary files differnew file mode 100644 index 0000000..b2d35cc --- /dev/null +++ b/res/drawable-mdpi/ic_menu_list.png diff --git a/res/drawable-mdpi/ic_menu_thumbnail.png b/res/drawable-mdpi/ic_menu_thumbnail.png Binary files differnew file mode 100644 index 0000000..74a87e2 --- /dev/null +++ b/res/drawable-mdpi/ic_menu_thumbnail.png diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index 8b67e4d..328208f 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java @@ -496,9 +496,18 @@ public class BrowserBookmarksPage extends Activity implements // No need to show the menu if there are no items. return result; } - menu.findItem(R.id.switch_mode_menu_id).setTitle( - mViewMode == BookmarkViewMode.GRID ? R.string.switch_to_list - : R.string.switch_to_thumbnails); + MenuItem switchItem = menu.findItem(R.id.switch_mode_menu_id); + int titleResId; + int iconResId; + if (mViewMode == BookmarkViewMode.GRID) { + titleResId = R.string.switch_to_list; + iconResId = R.drawable.ic_menu_list; + } else { + titleResId = R.string.switch_to_thumbnails; + iconResId = R.drawable.ic_menu_thumbnail; + } + switchItem.setTitle(titleResId); + switchItem.setIcon(iconResId); return true; } |