summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/FolderItemView.java
Commit message (Collapse)AuthorAgeFilesLines
* [QUANTUM] Update folder_item for widget selectionRohan Shah2014-09-031-6/+12
| | | | | | | | | Changed a few things around (Rel -> LinearLayout) in the folder item view and added spacing for indenting child folders. Bug: 17260359 Change-Id: I648a96c21c5f071269d859ae76a0dd45de409a1a
* remove drag/drop codeAndy Huang2014-08-281-82/+1
| | | | | Bug: 17322937 Change-Id: Idc21156e6d5e9ea4e83e3c17e92a66388ffc7a6a
* Make corner radius a constant, clean importsTony Mantler2014-07-151-9/+21
| | | | | | b/15966080 Change-Id: I21e2f645fb8e5c61de2bf1479d12d6447136341c
* Make unseen count background a round rectTony Mantler2014-07-151-1/+14
| | | | | | | | Removes dangerously sharp corners from the badge. b/15966080 Change-Id: I00485990b5ca2276dc4dde014999afcdaee438a0
* Format unseen count as "x new"Tony Mantler2014-07-141-1/+1
| | | | | | b/15966080 Change-Id: I0e8f9a325c61e156dd16a8c4cf22bb5d37939808
* Some quantum drawer stylingTony Mantler2014-07-071-18/+1
| | | | | | b/15966080 Change-Id: I2179143aca97d808445105fc358b6e7520f73499
* RTL: Properly align drawer items.Andrew Sapperstein2014-03-041-4/+2
| | | | | | | | | Fixes b/12719552. Previously used BidiFormatter incorrectly. Now using textAlignment's viewStart to align correctly for all locales. Change-Id: Ibffebc3d108d38ba6be9d38aefc74f473854bcbb
* RTL - fix folder name padding. b/12721062.Andrew Sapperstein2014-01-241-3/+12
| | | | Change-Id: I7ed8658ac33a469a3f7076ac9021b855748426ce
* More warning cleanupScott Kennedy2013-08-021-1/+0
| | | | Change-Id: I22970341bf11eb355aa495f61c022efb8db61bcb
* Enable Bidi, add correct tags to folder list itemsTony Mantler2013-07-251-11/+6
| | | | | | b/7221227 Change-Id: Idf4b909811bf7c74e6d202346f21506c4cf875dd
* Add a new FolderUriScott Kennedy2013-07-161-1/+1
| | | | | | | | This will allow us to add query parameters such that Uris will still appear to be equal, regardless of differences in the parameters. Bug: 9780067 Change-Id: Iafe39763b3ee448cf02536df89caa736500dfdaf
* Remove unused imports and use proper orderScott Kennedy2013-05-241-14/+7
| | | | Change-Id: If98ed6b80728ad8ebacfd8e0e5e49dc84c07a9b2
* Using drawable states for drag and drop.Andrew Sapperstein2013-05-221-64/+10
| | | | | | | | Now we're using states for icons, background colors, and text colors. The framework updates these automatically so we're not updating stuff when we receive DragEvents. Change-Id: I16c14cc8681b8249428876f6bc435ac9a8de93cc (cherry picked from commit 05eca5b9b96778122e6a4c4b66bec604f0103bea)
* Adding drag-state drawable to folder item icons.Andrew Sapperstein2013-05-211-2/+27
| | | | | | | | | | | | | Fixes b/8986628. Previously we had two states for icons in the folder list (activated and default). We now have a third state for when the app is in drag mode and the folder is disabled which uses a lighter grey icon. To make this work, we use a custom drawable state (state_drag_mode) for when drag is entered. Another CL will use this new drag state for changing folder text color as well. Change-Id: I280b187a454064f1c50f4ef62db5c8ba86c1f4d6 (cherry picked from commit 47fb86e95836e1a47bd784f6866c8c798b44ab6b)
* Fix spacing and align in drawerRohan Shah2013-04-291-0/+17
| | | | | | | | Fixed margin issues and spacing when there aren't folder icons. Also removed linear layouts and added back centerVertical align instead of baseline align. Change-Id: Ia8f0494d978c820a4f0636d6b646b19cdc6ddcb1
* Add selectors for drawer item state changeRohan Shah2013-04-281-24/+0
| | | | | | | | For folder items and account items, add a selectors in drawable and color to allow for an easy state change (highlighted/focused/unselected). Change-Id: I618bcb70ca72c9849cf90e9b6662092822e4862e
* more contrast on drawer item textAndy Huang2013-04-261-1/+1
| | | | | | | Be consistent with converastion list text colors. visD approved. Change-Id: I4f35d82bd5e093490d9d28d649ba50911762c3f9
* resolved conflicts for merge of d0204cff to jb-ub-mail-ur9Paul Westbrook2013-04-261-2/+26
|\ | | | | | | Change-Id: I16aa573b191f3c6e97ef69a7192558905507c32a
| * Change UIRohan Shah2013-04-261-2/+26
| | | | | | | | | | | | | | | | | | | | | | -Removed accounts recents -Changed colors -Added radio button assets for accounts -New header names for sections in folder -Shadows, folder selection dialog modified Bug: 8720403 Change-Id: I5b9379a4fe323bcc25fb0ed943ddc8ec7880a6be
* | FLF unseen count should be "%d", not "%d NEW"Scott Kennedy2013-04-181-2/+1
|/ | | | Change-Id: Icb07d145d521464eb09b775d44df71c1e259af1d
* Reduce refreshes to the drawerVikram Aggarwal2013-04-111-0/+21
| | | | | | | | | | | notifyDataSetChanged() a lot less aggressively. This reduces the number of times the drawer is updated on a single folder change (from around five) to two. Bug: 8558083 Gmail: Flickering after selecting any option from sliding panel Change-Id: Ie24ef81a904ad4921e240dc80c386d49af97ef8d
* Refactor AccountItemView and resourcesRohan Shah2013-03-261-1/+0
| | | | | | | | | | | | | | | | Changes made: 1) Modified and separated most account_item.xml dependencies -Res files were cloned if necessary -Styles, colors, dimen have resources starting with account_item* 2) Cleaned out AccountItemView -Removed icon, backgrounds, draggable 3) Removed folder_expand_item.xml -No longer need expand item since MORE labels are gone. Bug: 8458611 Change-Id: I9bc347ca8b9886d439dad7d7da39e4324072b8a0
* Add and separate Account Item ViewRohan Shah2013-03-221-1/+0
| | | | | | | | | | | | | | | Move account out of FolderItemView and simplify some of the key functionality (removing params and instance vars). Fix the multi-select bug as well by disabling state_activated for the account_item style. Changed the header as well to make the style different for currently selected account. Bug: 8440682 Change-Id: I55c55e403bc64733b5924f95f423fd1097c4dc16
* Change FolderType to a bitmaskScott Kennedy2013-03-201-2/+1
| | | | | | | This allows one folder to have multiple types. Bug: 8426563 Change-Id: Ide918a884cfb76022f3c03f5cc69adb149a964cc
* Added unread counts to account in drawerRohan Shah2013-03-181-1/+2
| | | | | | | | | | Accounts now have unread counts on the right in the drawer, similar to folder item views. I'll be refactoring account view into its own class/xml at some point on 3/18 or 3/19. Change-Id: I181dd7a9d8af37bcc6605163d90503cc615b432f
* Ugly first cut of putting accounts in the FLFVikram Aggarwal2013-03-131-2/+12
| | | | | | | | | | | | | | Things to be done which will be checked in soon: 1. Removing some of the ugliness around using a FolderItemView. 2. Reducing the amount of boilerplate when registering observers. 3. Pictures on the accounts? 4. Unread counts on the accounts. 5. Selected state on the account per UX spec. 6. Collapsing the existing list and expanding new list as per UX spec. This is a known ugly solution to unblock the effort of others. Change-Id: I8659232ce5508c9f766e5e8da69e21ad9ec24f32
* Preliminary sectioned inbox supportScott Kennedy2013-02-281-2/+23
| | | | | | | | Add basic support for sectioned inbox. This does not include the teaser view or other less important UI features. Bug: 7685676 Change-Id: I2cba26dc4acc1021f5b8ab0ca81d4e0a65f744a8
* Add checking to recover from unread count inconsistencyVikram Aggarwal2012-11-061-3/+21
| | | | | | | | | | | | | In general, keeping the current folder in the FLF entails storing it for fragment life-cycle events, serializing and de-serializing it, etc. This is undesirable for performance reasons. So we keep the current folder only for the purpose of detecting unread count inconsistency. Bug: 7230012 JB MR1 tablet: unread count in LHS label list sometimes inaccurate Change-Id: I692e282037883137b1e9ee27ed7d93e731898783
* Carets, not Elipses for parent folders.Vikram Aggarwal2012-09-211-12/+3
| | | | | | | | | | | Use a caret in the South-East corner of the item, not elipses. Fix Bug: 7212509 What does "..." mean after the name of a folder (in an IMAP or EAS account)? Change-Id: Ib7b5b5d75058beccf2f7ca68006b84de126ea2b3 Change-Id: Ied96f73e2093ba07682b735cc2755b90bb9ea0f1
* Show parent... if children existVikram Aggarwal2012-09-141-1/+9
| | | | | | | Fixes second issue in b/7136651 In folders list, top-level folders with children don't show the .. affordance Change-Id: I90725a2e718f34662697abdd27f1553bda3689a6
* Display total count for outbox and trashPaul Westbrook2012-09-051-9/+1
| | | | | | | | | | Display the folder total count for outbox and trash label, in addtion to the drafts label. Ensure the the actionbar count is the same as the FolderItemView count Bug: 7100166 Change-Id: I2ef367a53267c0bf14df22455245f1413291b25c
* Fix problem when views are recycledPaul Westbrook2012-07-131-1/+2
| | | | Change-Id: I21de559318a4bb5f79e390025f4aafa703e25a55
* Fixup multi level hierarchiesMindy Pereira2012-06-191-3/+2
| | | | | | | | | | | | | | Fixes several issues: 1) now properly shows parent icon at all levels 2) now properly hides parent icon at all levels (recycling views means we have to show/hide each time!) 3) moving up/ down the hierarchy works properly open issue: going back from a folder with children to its parent does not select the child folder in its parent view Change-Id: I46995ee636ac199a3d600eea0b5f37bd3bf624ff
* Update hierarchical folders; implement this "the right way"Mindy Pereira2012-06-011-2/+2
| | | | | | | Have 2 list adapters that understand when to setup a hierarchy and when to not Change-Id: I98b349ac373689c091bd8227a975bc47ae3f5092
* Show total number of drafts in folder list viewPaul Westbrook2012-03-281-3/+12
| | | | | Bug: 6219624 Change-Id: I5b835695dd22de50f28be3c08c6a3aa0f03c575e
* Remove all label refrences from unified; change to folderMindy Pereira2012-03-091-3/+3
| | | | | | Remove labels text views from unified mail conversation list items. Gmail will override with a new xml file that will provide a "folders" area Change-Id: I443b8d73f253f046dfa8a8a68afa19e89bf7a85a
* Show unread count for folders.Mindy Pereira2012-02-161-4/+11
| | | | Change-Id: Ie20b9078afb39ede91173047121f426447e05d4e
* Show a special collapsed asset icon when a folder has children; use CursorLoaderMindy Pereira2012-02-161-0/+7
| | | | | Remove unneeded UIProviderCursorLoader Change-Id: Id0671479de98c23242018ef1e576dd803e16395c
* Show all folders for an account.Mindy Pereira2012-02-151-0/+178
This is just the start. Needs a lot more passes, and will want to make this a fragment instead of an activity. Change-Id: I107390ee6c2e3af044c977c160b8d9a52477d569