daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

AndroidSwipeLayout in HorizontalScrollView #327

Open beremaran opened 8 years ago

beremaran commented 8 years ago

Hi,

I'm programmatically create AndroidSwipeLayout but I can't get it to work within HorizontalScrollView.

That's how I create it: `SwipeLayout swipeLayout = new SwipeLayout(mContext);

        swipeLayout.setShowMode(SwipeLayout.ShowMode.LayDown);
        swipeLayout.addDrag(SwipeLayout.DragEdge.Left, bottomView);

        swipeLayout.setLayoutParams(
                new AbsListView.LayoutParams(
                        AbsListView.LayoutParams.WRAP_CONTENT,
                        AbsListView.LayoutParams.WRAP_CONTENT
                )
        );

        bottomView.setLayoutParams(
                new AbsListView.LayoutParams(
                        Sizer.dpAsPixels(mContext, 200),
                        SwipeLayout.LayoutParams.MATCH_PARENT
                )
        );

        swipeLayout.addView(bottomView);
        swipeLayout.addView(rowFrame);`

Is it possible to use SwipeLayout in horizontal scroll view?