summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/SwipeHelper.java
Commit message (Collapse)AuthorAgeFilesLines
* Keyboard support for focused stateJin Cao2014-09-021-1/+1
| | | | | | | | | | | | | | - remove focusable from FAB so keyboard won't navigate to it. - rename selectionSet to checkedSet - selected is a state for listview to focus one of its elements - what we really want is checked state for checked items in CAB mode. - show the blue focus bar when isSelected returns true - this is auto-set by the framework as we navigate using the keyboard. - remove blue background color for selected state b/17258708 Change-Id: Ic9739c9b349403942f64fafa26500c08d1f1cc4c
* Temp fix for swipe bugJin Cao2014-04-041-2/+2
| | | | | | | | This is a temporary fix so that when the user swipes X away and then quickly swipes Y, both X and Y are discarded instead of just Y. b/8465164 Change-Id: Ia911bc45b316314d458968c27a5f3253c5754cc5
* Hierarchical folders in conversation listScott Kennedy2013-09-191-6/+0
| | | | | | | | | Use something similar to the sectioned inbox teaser. Allow expanding/collapsing when there are too many folders. Bug: 9604590 Change-Id: I6cc79bd7c033bbf13c750e7720fe71227b38cc85
* Clean up a bunch of warningsScott Kennedy2013-06-251-6/+0
| | | | | Bug: 9565838 Change-Id: Ie3a380581e81c63aaa0764875c55bfdccd5f2b13
* Fix the folder click problemVikram Aggarwal2013-06-071-57/+8
| | | | | | | | | | The SwipeHandler should never act on NestedFolderView elements since these should not be allowed to swipe. Fixes the issue where the folders were not clickable. Also, remove a lot of unused code in the SwipeHelper. Change-Id: I4495a4224e28d52560ead47ee9e3f6d34c4ab916
* Unify LogTagScott Kennedy2013-06-051-4/+4
| | | | | | | | | | | | | | | | | | | | There is now only one LogTag class. The static initializer of GmailApplication (existing) and EmailApplication (new) will now set the log tag to "Gmail" and "Email", respectively. Up until that code is run, it will be "UnifiedEmail". "setprop log.tag.Gmail VERBOSE" (or .Email) will trigger all logs to be printed as long as they go through LogUtils, regardless of what tag is used by that individual log. This lets us still turn on logging everywhere in one command, but also lets us use more descriptive tags (like the class name). And since we no longer have three com.android.mail.utils.LogTag classes, builds will be much easier. Also, we now use LogUtils everywhere. Change-Id: Iec53e87cad0a46b73d2afbbd8d44aca097a5087a
* Add teaser for new conversation photo checkboxes.Mark Wei2013-05-051-9/+9
| | | | | | | | | | | | | The teaser shows up for the first time the user sees the conversation photos. If they change to no photos, and later change back, the teaser comes back. The teaser sits immediately in front of the first real conversation item (unless other special views also try to have the same position behavior, in which case the current implementation gives undefined behavior dependent upon which special view is added to the adapter first). Bug: 8772762 Change-Id: Ica79482f2a2eae0cf3409f6accb7ae5b0fc0fd45
* Reduce swipe deadzoneAlice Yang2013-04-301-1/+1
| | | | | | | | | Reducing this any further would cause the drawer to get triggered by accident a lot more. Bug 8769744 Change-Id: I39f37c0aa9405b7e080529a287788a7f76e6822a
* CleanupScott Kennedy2013-04-051-4/+4
| | | | Change-Id: Iee8abf75639450d469632e43fe0e102b687558db
* Dead vertical left, to disallow accidental swipes.Vikram Aggarwal2013-03-221-3/+10
| | | | | | | | A vertical block of pixes on the left edge of the screen should not accidentally swipe the conversation since swipe is destructive. Bug: 8434484 The new gmail UI makes my experience more difficult Change-Id: Ic135600eed75c435dcc131ee544492f23365e3ea
* Resolve all STOPSHIP comments in UnifiedEmailVikram Aggarwal2013-02-151-1/+2
| | | | | | | | | Bug 8211088 filed for the remaining case. Bug: 8132946 Investigate the STOPSHIP comment in EmailProvider.java wrt PII Change-Id: I0f93e7bd68360eccbf781c144addf8a8a66ae779
* Updates to swipe interactionmindyp2013-01-161-1/+1
| | | | | | | | | When swiping away items, wait to fade in action text such as "archive | undo" until: 1) all items that are being collapsed have collapsed 2) we are no longer waiting for the user to try to start swiping another item Change-Id: Iaec75fb6a3a144e8b4c469f6e48f4354ec4aff8d
* Fade out other leave behind when user starts new swipemindyp2013-01-161-2/+25
| | | | | | | | Change-Id: Icdd1b7d65715852d5fd976e7fccaf5790f940892 Conflicts: src/com/android/mail/ui/SwipeHelper.java
* As team has noted, the dismiss of an item feels a bit "weird"mindyp2012-12-191-3/+4
| | | | | | | try a decelerating animation instead of a linear curved animation to make it look smoother Change-Id: I22e9ade4135ec6996451d07ea775acdb2db8d01f
* swipe tweaksmindyp2012-12-191-0/+3
| | | | Change-Id: I5011f11989056376be748161fdb3f0e699366454
* prevent buildLayer ISEsAndy Huang2012-10-241-4/+3
| | | | | | | | | buildLayer() crashes when the view isn't attached. Hmm. Layer twiddling is only useful if attached anyway, so just check before, like Launcher2 does. Bug: 7404218 Change-Id: Ib23a512487ff0746ba279ab3e4af02898c6b1044
* use hardware layer to improve conversation load animation fpsAndy Huang2012-10-181-0/+8
| | | | | | | | | | | | | | | | Follow the standard pattern to enable HW acceleration when animating alpha. Improves framerate of the fade-in on older hardware. Also add buildLayer() to the pattern (copied from Launcher and QuickContacts) to do some work up-front instead of during the animation. Fix the multi-dismiss case in swipe to switch back to no layer when the animation is complete. Bug: 7360692 Change-Id: Id97c473eeffdabe15e3308aa4f1e0755c3f33019
* use swipehelper to determine scrollmindyp2012-08-281-3/+6
| | | | | | | | | | | | | let swipe helper determine if the user meant to scroll fixes b/7022556 Increase scroll threshold gets rid of leave behind If we use the scroll listener, we don't get to use our own threshhold We want to be careful when the user has started on the leave behind item and make sure that we dont just detect the user playing around on the item, maybe just a touch for "what did I do here?" and dismiss it by accident So the threshhold for dismissing the item when the user starts on the leavebehinditem is larger than when they start on another item. Change-Id: I1e55e6c9be07e026b19a4ad55ad531305d3777d2
* Dismiss just the text from the leave behind instead of the whole item.mindyp2012-08-171-13/+6
| | | | | | Leaves the BG there so the change isn't as "shocking" Change-Id: I95b6929dadbf9b5e7c80931a3f65111fc4a695ff
* Remove unnecessary codeMindy Pereira2012-08-101-2/+0
| | | | | | | We don't dismiss multiple children via the swipe helper We use animations attached to the conversationitem views themselves Change-Id: I5254e378df3b2e181dabfb547658f5dab5a5c8d9
* Don't call dismisscancelled until the dismiss animation is done!Mindy Pereira2012-07-271-2/+1
| | | | | | Otherwise, it still looks undismissed. Change-Id: I620568d3068f224a1e3d7eba6aca03cccc342426
* Make animation durations resources.Mindy Pereira2012-07-271-20/+31
| | | | Change-Id: I0cb6bf5c88c0084853e79b5dd18cf032f31232cd
* Once we have started dragging, don't switch to scrolling.Mindy Pereira2012-07-271-2/+2
| | | | Change-Id: I43c3f87976b032e7357ace5d52a9d54b6ad1fa05
* Improved swipe detectionMindy Pereira2012-07-271-3/+8
| | | | Change-Id: I0a0a60d330fd5df3922a2e15f230f27ade68af25
* Add a black leave behind peeking out behind a swipeable item.Mindy Pereira2012-07-241-2/+2
| | | | Change-Id: Ib5e90fee11899710e5ce9ca547003530ee56ca1e
* Show animation when destroying items via the swipe action.Mindy Pereira2012-07-241-12/+2
| | | | | | | | | | | | | When the user checks a bunch of items then presses (archive for gmail) the button corresponding to the swipe action, animate them out to the right. Fixes a few issues introduced since I last touched this code Starts the animation duration at 500ms for swiping out to the right Makes sure positions are properly set Makes sure the destructiveaction doesn't get called until the animations are complete. Change-Id: Ia024cceb703fc881d40ddbe393278aa2aec67311
* Update interaction of selected conversations with swipeMindy Pereira2012-07-121-43/+9
| | | | | | | | According to new specs: 1) only the item swiped on is archived, not any other selected conversations 2) even where there is a selection set, any swipe on any item will dismiss that item Change-Id: Id94c69a0e5b0ca03b541458b1200a56d6d16c703
* Don't clear associated views before snapping them back to position.Mindy Pereira2012-06-221-3/+2
| | | | | | | | | onDragCancelled was clearing them; this can wait until the animation for returning the items to x=0 is completed There is a bug on this somewhere that I can't currently find Change-Id: Ia17eb6f97a02dad26738825da7befa954796a3bc
* Return item to original color when it is snapped back.Mindy Pereira2012-04-161-0/+15
| | | | | | fixes b/6344022 Return original color when swipe is cancelled Change-Id: Ia67d515243dd92d729c9098cb16eef3547196acf
* Show leavebehind after swiping away an item.Mindy Pereira2012-04-161-28/+24
| | | | Change-Id: I3bae79ed5bb8919985dbfa6e81416da980281cff
* Fix touch slop settings.Mindy Pereira2012-04-051-18/+11
| | | | | | This will make touching stars and conversation and checkboxes EASIER. Change-Id: I1d934b700ab05601083d0de81ac0f156a2d80e7d
* Make batch archive conversations fly out to the right before shrinking.Mindy Pereira2012-04-051-1/+12
| | | | Change-Id: I0a62d837acf0e41ad6fe012a87dbde29e0cf2f17
* Improve swipe mechanics.Mindy Pereira2012-04-041-24/+66
| | | | | Make it harder to trigger a swipe by adding a min distance. Change-Id: Id4dcd0dca0201e47ba95f319c494b134f87befeb
* When there is no swipe, use a different touch handler.Mindy Pereira2012-04-041-1/+4
| | | | | | Fixes b/ 6291400 Multiple messages are selected by scrolling up and down in Inbox Fixes b/6291013 java.lang.ClassCastException: com.android.mail.browse.ConversationListFooterView cannot be cast to com.android.mail.browse.ConversationItemView Change-Id: I44e5a21326a620405cbdf769e736d37bbda5ceac
* Respect hide checkboxes; tap and hold to add to CAB groupMindy Pereira2012-04-041-1/+7
| | | | Change-Id: Iaddd1dbbfd1a0e3c07ba1ffcd6a4e4368ad0e294
* Re-enable swipe.Mindy Pereira2012-04-021-40/+144
| | | | | | | | Swipes all checked items at once Tap highlight Properly colored background Doesnt swipe non checked items when there are checked items Change-Id: Id71e331d35f75ee02813dee8376d764386221868
* Beginning of swipe to archive.Mindy Pereira2012-03-161-0/+347
Create our own swipeable list. Change-Id: I74d2ad0176dbc7411c1c884c9b8b7c24a770e819