.png)
blog address: http://findnerd.com/list/view/how-to-detect-swipe-left-or-right-function-on-listview-item-in-android/785
keywords: SwipeDetector, Swipe From, Left To Right, Listview Item Swipe ,android
member since: Dec 8, 2015 | Viewed: 144
How to detect swipe left or right function on listview item in android
Category: Education
ANDROID (1) If you want to detect swipe gesture from left to right or right to left on the list view item in android. than you just have to add this Class in your activity and perform any task by detecting any type of gesture in your list item in android. Follow the instruction given below to achieve this functionality in you listview. This is the Class which you have to add in your activity public static enum Action { LR, // Left to right RL, // Right to left TB, // Top to bottom BT, // Bottom to top None // Action not found } public class SwipeDetector implements View.OnTouchListener { private static final int HORIZONTAL_MIN*DISTANCE = 30; // The minimum // distance for // horizontal swipe private static final int VERTICAL_MIN_DISTANCE = 80; // The minimum distance // for vertical // swipe ... Read full blog -http://findnerd.com/list/view/how-to-detect-swipe-left-or-right-function-on-listview-item-in-android/785
{ More Related Blogs }
Education
Rekomendasi 5 Tempat Belanja T...
Apr 2, 2022
Education
Overview of Primary School Tea...
May 14, 2024
Education
Top Full Stack Developer Cours...
Jul 8, 2024
Education
How to Choose an Online Learni...
Dec 2, 2024
Education
Learn Video Editing Courses at...
Jun 21, 2021
Education
Exclusive CEH Master Classes i...
Jul 8, 2024