PlaceHolderView icon indicating copy to clipboard operation
PlaceHolderView copied to clipboard

Change swipe in and swipe out messages

Open Luuk99 opened this issue 5 years ago • 0 comments

Hi,

Is there a way that I can change the swipe in and swipe out messages along the way? I instantiated a swipeview builder in the onCreate function of my activity but I want to change the messages after the first swipe.

I tried placing this in an itemRemovedListener (which works, that's now the problem):

                mSwipeView.getBuilder()
                        .setSwipeDecor(new SwipeDecor()
                                .setPaddingTop(20)
                                .setRelativeScale(0.01f)
                                .setSwipeInMsgLayoutId(R.layout.swipe_in_msg_view)
                                .setSwipeOutMsgLayoutId(R.layout.swipe_out_msg_view));

But it does not change the SwipeInMsgLayout and SwipeOutMsgLayout. I used R.layout.swipe_in_msg_view_start on the onCreate builder so I did not use the same layout by accident.

Luuk99 avatar Mar 16 '19 10:03 Luuk99