i have a list view when user clicks on an item a dialog opens and shows a list View item's text now i want to add a swipe view to dialog, to let user swipes to the next or previous text of list view's item ?
问问题
3100 次
1 回答
0
Info on how to implement a swipe gesture can be found here (although there are other methods):
So in your case, add the swipe detector to your project, set a click listener on your dialog content somewhere, and in that listener implement your logic on what to replace said dialog's content with. The swipe detector recognizes both left-to-right and right-to-left movement, so adding a previous and next case should be fairly simple.
于 2013-07-04T16:27:28.723 回答