1896344b53ddf6cdaf17dc02a05c45f587879d99 |
|
07-Jun-2014 |
Andrew Lee <anwlee@google.com> |
Revise remove view target positioning. - Move placement from dialtacts activity layout to the lists fragment, so that it can be positioned over the tab bar. - Relocate references to RemoveView/RemoveViewContainer to the lists fragment from the activity class. - Set colors using tints, remove old highlight state asset. - Fade out search bar and recent card when dragging. Bug: 15434489 Change-Id: I49205c79aeb008a30efc3c2ea417b8836444e203
/packages/apps/Dialer/src/com/android/dialer/list/RemoveView.java
|
2826619b274772beebc7369d5dfe616344f74b6f |
|
01-May-2014 |
Yorke Lee <yorkelee@google.com> |
Refactor drag and drop to work for entire Dialer layout Add a drag listener to the main dialer layout and manipulate drag events correctly in DragDropController so that drag and drop works throughout the main Dialer layout, rather than just the speed dial fragment. Also shift the remove view into dialtacts_mainlayout so that it can continue receiving drag events. Bug: 14393052 Change-Id: I90c26fee4fe681d0e237aa490185e850628e4cd0
/packages/apps/Dialer/src/com/android/dialer/list/RemoveView.java
|
3cefcc69c10ab12bd782a0b53779dbd1cc0e2aa1 |
|
16-Jan-2014 |
Yorke Lee <yorkelee@google.com> |
Add drag to remove for favorites in Dialer * Add remove view in dialtacts_activity.xml, and rearrange layout slightly so that it takes up the same position in the layout as the search view container. Contacts that are dragged to this remove view will be unstarred and unpinned. * Add drag event logic to the Remove View, so that when the user hovers a contact over it, the UI will continue to respond. Previously, only the PhoneFavoritesListView would detect touch events. * Refactor DragDropController and OnDragDropListener into separate classes. DragDropController performs the work of receiving drag/drop events from multiple views, combining them, and then firing off callbacks as appropriate to OnDragDropListeners. Each OnDragDropListener can then update their UI or internal data model as necessary in response to the callbacks. OnDragDropListener <---------------------------------------- ^ | | | DialtactsActivity ---------------> RemoveView | | | | v | | callbacks PhoneFavoriteListFragment |drag events | | | | v v | PhoneFavoriteListView ------------> DragController-------- drag events | | callbacks v PhoneFavoritesTileAdapter --> OnDragDropListener * While in here, add a content description for the clear search button Change-Id: I044ad1c5aa42c7686bde6bf5074095a4fe879bde
/packages/apps/Dialer/src/com/android/dialer/list/RemoveView.java
|