SwipeMenuListView icon indicating copy to clipboard operation
SwipeMenuListView copied to clipboard

SwipeMenuListView does not swipe completely, if it's inside a scroll view

Open kit24 opened this issue 8 years ago • 7 comments

SwipeMenuListView works fine on its own. But when I encapsulate it inside a vertical scrollview, the menu items of the list view do not swipe properly and all the menu items are not visible on swipe. What is the issue and how do I fix it?

I need it inside a vertical scroll view, because there are other text view in the activity. I want to be able to scroll the entire activity together.

kit24 avatar Feb 26 '16 08:02 kit24

I am also having similar problem when I use SwipeMenuListView with ViewPager, it does not show menus completely when swiped.

@kit24 Have you found any solution for this?

mandarsphinx avatar Jun 10 '16 06:06 mandarsphinx

I solved it (I think) by doing this:

listView.setOnSwipeListener(new SwipeMenuListView.OnSwipeListener() {

    @Override
    public void onSwipeStart(int position) {
        listView.smoothOpenMenu(position);
    }

    @Override
    public void onSwipeEnd(int position) {

    }
});

jackgu1988 avatar Jul 06 '16 09:07 jackgu1988

Same problem here! It doesn't show the swipeMenu on swipe when I put it in ViewHolder, but it show if I use smoothOpenMenu().

Any solution? Thanks.

LenghongQL avatar Aug 11 '16 03:08 LenghongQL

有答案吗?想知道,smoothOpenMenu不能完全解决问题

buobao avatar Dec 19 '16 01:12 buobao

Any solutions? I just find a way that using a custorm view extends SwipeMenuListView to solve this problem

MIkeeJY avatar Apr 26 '17 12:04 MIkeeJY

I am able to work this in a normal array adapter but not working in my custom adapter or list adapter while pushing textviews into list

gayuuz avatar Aug 03 '17 06:08 gayuuz

Hello everyone. I had reviewed your comments but not fully solved my problem. When I am trying to swipe cells inside viewpager, pager is working firstly, Nobody had solved this issues?

Saiken0918 avatar Jun 19 '18 02:06 Saiken0918