Use swipe helper for swiping

* Use SwipeHelper for swiping, in SwipeableListView for regular favorites.
  SwipeHelper and SwipeableListView are copied from DeskClock, with minor
  modifications (to prevent swiping or call log items, and all contact buttons).
* Make ContactTileRow implement SwipeHelperCallback so that tiled favorites
  can be swiped.
* Remove PhoneFavoriteGestureListener
* Add selectable item backgrounds to undo buttons on removal dialog
* Moved common code shared by PhoneFavoriteRegularRowView and
  PhoneFavoriteSquareTileView to PhoneFavoriteTileView
* Standardize layout ids for phone_favorite_regular_row_view and phone_favorite_tile_view
* Add long click listener to PhoneFavoriteTileView to trigger the start of a drag
  and drop operation
* Remove any contact entries that are in the removal dialog phase if the app is paused

Bug: 10257340
Bug: 10341201
Bug: 10328093
Bug: 10290239
Bug: 10262721
Bug: 10257340

Change-Id: I20448048b658759f6de75d643d2150be5a6ba8af
13 files changed
tree: 5d12046a569043637fba7fbd72d1adeed570dc3d
  1. res/
  2. src/
  3. tests/
  4. Android.mk
  5. AndroidManifest.xml
  6. proguard.flags