Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change swipe in and swipe out messages #157

Open
Luuk99 opened this issue Mar 16, 2019 · 0 comments
Open

Change swipe in and swipe out messages #157

Luuk99 opened this issue Mar 16, 2019 · 0 comments

Comments

@Luuk99
Copy link

Luuk99 commented Mar 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant