summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserBookmarksAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Make the "Most visited" page have a thumbnail viewing mode.Leon Scroggins2009-08-061-19/+46
| | | | | | | | | Start capturing screenshots for all visited pages, and show them in a grid view on the most visited page. Modify the BrowserBookmarks- Page and Adapter so they can be used for the "Most visited" page. Also change some of the ids for context menu items to be the same in the browser and history context menus, for simplicity in handling them in BrowserBookmarksPage.
* Implement onReceivedTouchIconUrl.Patrick Scott2009-08-051-25/+74
| | | | | | | | | | | Add DownloadTouchIcon, an AsyncTask that downloads the apple-touch-icon for urls that are marked as bookmarks. The touch icon is stored in the bookmark database similar to favicons and thumbnails. If a shortcut is created for a bookmark containing a touch icon, the touch icon is used (with rounded corners). Refactor the bookmarks query to be a static function. The function uses the original url and new url to look for matching bookmarks. This takes care of redirects as well as bookmarks containing queries.
* Updates for the look of the bookmarks page.Leon Scroggins2009-08-041-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Work on the Bookmark Grid, including the favicon.Leon Scroggins2009-07-151-34/+15
| | | | | | | | | | Remove the file BookmarkGridPage, since a GridView will do just fine. Now we specify a height and width for the bitmaps rather than adjusting them for the screen size. Also add the favicon and match the design more closely for the Add option. In BrowserActivity, match the size of the saved screenshots to the desired size for the Bookmarks Activity. Also move the logic into its own method so it can be called from multiple places (still called in only one at the moment).
* Integrate bookmark grid view mode with list view mode.Leon Scroggins2009-07-141-96/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Consolidate bookmark add/delete code in the browser.Leon Scroggins2009-06-151-12/+1
| | | | | Driven by a desire to put bookmarking functionality into the title bar, I have consolidated the code for adding and removing bookmarks.
* Remove an unnecessary field.Leon Scroggins2009-05-211-2/+0
| | | | | This string was used for logging error messages, but it is not used.
* Automated import from //branches/master/...@141656,141656Patrick Scott2009-03-241-0/+15
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+535
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-535/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-2/+15
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+522