Improved OnSwipeTouchListener.
Added supporting of gradle.