OSDN Git Service

Integrate bookmark grid view mode with list view mode.
authorLeon Scroggins <scroggo@google.com>
Tue, 14 Jul 2009 18:48:02 +0000 (14:48 -0400)
committerLeon Scroggins <scroggo@google.com>
Tue, 14 Jul 2009 18:48:02 +0000 (14:48 -0400)
commit892df31fda83baeeee2d0620b622b4730c30ee87
treef72177e1ae59156c798eb931e13574c5cd068edc
parentb0e4fc7b8efc66b20cf83a8d5f8dc9110d67da4f
Integrate bookmark grid view mode with list view mode.

This way the two different modes can share code and have
all the same behaviors (i.e. context menu options).

AndroidManifest.xml
Remove BookmarkGridPage, which is no longer an Activity.

bookmarks.xml
Add a menu option to switch between the different viewing modes.

strings.xml
Name for that menu option.

AddNewBookmark.java
Remove copyTo, which is not necessary.

BookmarkGridPage.java
Change to just be a GridView, with our desired settings, and
overriding onSizeChanged to size the thumbs appropriately.  Now its
constructor takes a BrowserBookmarksAdapter, which it uses instead
of its old private Adapter.

BrowserBookmarksAdapter.java
Now has two modes, so it can be used for both the bookmarks grid
and the list view.  Removed a bunch of obsolete code, which was
used for searching/sorting the bookmarks.

BrowserBookmarksPage.java
Now switches back and forth between using a GridView and a ListView.
AndroidManifest.xml
res/menu/bookmarks.xml
res/values/strings.xml
src/com/android/browser/AddNewBookmark.java
src/com/android/browser/BookmarkGridPage.java
src/com/android/browser/BrowserBookmarksAdapter.java
src/com/android/browser/BrowserBookmarksPage.java
src/com/android/browser/CombinedBookmarkHistoryActivity.java