ViewPager and OnItemClickListener in ListView

后端 未结 1 844
灰色年华
灰色年华 2020-12-10 16:15

I\'m working on creating a swipe-to-dismiss list view adapter. My basic methodology is to wrap the list item\'s view as the second view in a ViewPager and provide the neces

1条回答
  •  时光说笑
    2020-12-10 16:51

    You are saying that you are making each list item a view pager, so that you can implement swiping to delete? If so... no no, this is not what view pager is for. First sorry it is just not intended to be used as an item in a list. Second it is for switching between views, not swiping to delete.

    Unfortunately we don't have a sample code to show how to do this, but you can look at the platform's implementation of the notification pane or recent apps to get some ideas.

    0 讨论(0)
提交回复
热议问题