public SwipeActionAdapter addBackground ( SwipeDirection key , int resId ) { if ( SwipeDirection . getAllDirections ( ) . contains ( key ) ) mBackgroundResIds . put ( key , resId ) ; return this ; }
Add a background image for a certain callback . The key for the background must be one of the directions from the SwipeDirections class .