daimajia / AndroidSwipeLayout

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

SwipeLayout.open() position is wrong #392

Open sohambannerjee8 opened 7 years ago

sohambannerjee8 commented 7 years ago

I am trying to open the swipeview on button click of a particular row of a listview. However the swipelayout is opening but in wrong position.Below is my code

tv_details.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
              if(sample1.getOpenStatus() == SwipeLayout.Status.Close){

                sample1.open(true);
              }else
                sample1.close(true);